home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / misc / pdflib / bind / python / pdflib_py.c < prev    next >
C/C++ Source or Header  |  1999-12-06  |  84KB  |  2,995 lines

  1. /*
  2.  * FILE : pdflib_py.c
  3.  * 
  4.  * This file was automatically generated by :
  5.  * Simplified Wrapper and Interface Generator (SWIG)
  6.  * Version 1.2 (alpha 1)
  7.  * 
  8.  * Portions Copyright (c) 1995-1998
  9.  * The University of Utah and The Regents of the University of California.
  10.  * Permission is granted to distribute this file in any manner provided
  11.  * this notice remains intact.
  12.  * 
  13.  * Do not make changes to this file--changes will be lost!
  14.  *
  15.  */
  16.  
  17.  
  18. #define SWIGCODE
  19. /* Implementation : PYTHON */
  20.  
  21. #define SWIGPYTHON
  22. #include <string.h>
  23. #include <stdlib.h>
  24. /***********************************************************************
  25.  * $Header: /usr/local/cvsroot/swig/swig1/swig_lib/python/python.swg,v 1.1.1.1 1999/01/21 11:16:43 harcoh Exp $
  26.  * swig_lib/python/python.cfg
  27.  *
  28.  * This file contains coded needed to add variable linking to the
  29.  * Python interpreter.   C variables are added as a new kind of Python
  30.  * datatype.
  31.  *
  32.  * Also contains supporting code for building python under Windows
  33.  * and things like that.
  34.  *
  35.  * $Log: python.swg,v $
  36.  * Revision 1.1.1.1  1999/01/21 11:16:43  harcoh
  37.  * import of Swig 1.2a1
  38.  *
  39.  ************************************************************************/
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. #include "Python.h"
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. /* Definitions for Windows/Unix exporting */
  50. #if defined(__WIN32__)
  51. #   if defined(_MSC_VER)
  52. #    define SWIGEXPORT(a,b) __declspec(dllexport) a b
  53. #   else
  54. #    if defined(__BORLANDC__)
  55. #        define SWIGEXPORT(a,b) a _export b
  56. #    else
  57. #        define SWIGEXPORT(a,b) a b
  58. #    endif
  59. #   endif
  60. #else
  61. #   define SWIGEXPORT(a,b) a b
  62. #endif
  63.  
  64. #ifdef SWIG_GLOBAL
  65. #ifdef __cplusplus
  66. #define SWIGSTATIC extern "C"
  67. #else
  68. #define SWIGSTATIC
  69. #endif
  70. #endif
  71.  
  72. #ifndef SWIGSTATIC
  73. #define SWIGSTATIC static
  74. #endif
  75.  
  76. typedef struct {
  77.   char  *name;
  78.   PyObject *(*get_attr)(void);
  79.   int (*set_attr)(PyObject *);
  80. } swig_globalvar;
  81.  
  82. typedef struct swig_varlinkobject {
  83.   PyObject_HEAD
  84.   swig_globalvar **vars;
  85.   int      nvars;
  86.   int      maxvars;
  87. } swig_varlinkobject;
  88.  
  89. /* ----------------------------------------------------------------------
  90.    swig_varlink_repr()
  91.  
  92.    Function for python repr method
  93.    ---------------------------------------------------------------------- */
  94.  
  95. static PyObject *
  96. swig_varlink_repr(swig_varlinkobject *v)
  97. {
  98.   v = v;
  99.   return PyString_FromString("<Global variables>");
  100. }
  101.  
  102. /* ---------------------------------------------------------------------
  103.    swig_varlink_print()
  104.  
  105.    Print out all of the global variable names
  106.    --------------------------------------------------------------------- */
  107.  
  108. static int
  109. swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags)
  110. {
  111.  
  112.   int i = 0;
  113.   flags = flags;
  114.   fprintf(fp,"Global variables { ");
  115.   while (v->vars[i]) {
  116.     fprintf(fp,"%s", v->vars[i]->name);
  117.     i++;
  118.     if (v->vars[i]) fprintf(fp,", ");
  119.   }
  120.   fprintf(fp," }\n");
  121.   return 0;
  122. }
  123.  
  124. /* --------------------------------------------------------------------
  125.    swig_varlink_getattr
  126.  
  127.    This function gets the value of a variable and returns it as a
  128.    PyObject.   In our case, we'll be looking at the datatype and
  129.    converting into a number or string
  130.    -------------------------------------------------------------------- */
  131.  
  132. static PyObject *
  133. swig_varlink_getattr(swig_varlinkobject *v, char *n)
  134. {
  135.   int i = 0;
  136.   char temp[128];
  137.  
  138.   while (v->vars[i]) {
  139.     if (strcmp(v->vars[i]->name,n) == 0) {
  140.       return (*v->vars[i]->get_attr)();
  141.     }
  142.     i++;
  143.   }
  144.   sprintf(temp,"C global variable %s not found.", n);
  145.   PyErr_SetString(PyExc_NameError,temp);
  146.   return NULL;
  147. }
  148.  
  149. /* -------------------------------------------------------------------
  150.    swig_varlink_setattr()
  151.  
  152.    This function sets the value of a variable.
  153.    ------------------------------------------------------------------- */
  154.  
  155. static int
  156. swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
  157. {
  158.   char temp[128];
  159.   int i = 0;
  160.   while (v->vars[i]) {
  161.     if (strcmp(v->vars[i]->name,n) == 0) {
  162.       return (*v->vars[i]->set_attr)(p);
  163.     }
  164.     i++;
  165.   }
  166.   sprintf(temp,"C global variable %s not found.", n);
  167.   PyErr_SetString(PyExc_NameError,temp);
  168.   return 1;
  169. }
  170.  
  171. statichere PyTypeObject varlinktype = {
  172. /*  PyObject_HEAD_INIT(&PyType_Type)  Note : This doesn't work on some machines */
  173.   PyObject_HEAD_INIT(0)              
  174.   0,
  175.   "varlink",                          /* Type name    */
  176.   sizeof(swig_varlinkobject),         /* Basic size   */
  177.   0,                                  /* Itemsize     */
  178.   0,                                  /* Deallocator  */ 
  179.   (printfunc) swig_varlink_print,     /* Print        */
  180.   (getattrfunc) swig_varlink_getattr, /* get attr     */
  181.   (setattrfunc) swig_varlink_setattr, /* Set attr     */
  182.   0,                                  /* tp_compare   */
  183.   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
  184.   0,                                  /* tp_as_number */
  185.   0,                                  /* tp_as_mapping*/
  186.   0,                                  /* tp_hash      */
  187. };
  188.  
  189. /* Create a variable linking object for use later */
  190.  
  191. SWIGSTATIC PyObject *
  192. SWIG_newvarlink(void)
  193. {
  194.   swig_varlinkobject *result = 0;
  195.   result = PyMem_NEW(swig_varlinkobject,1);
  196.   varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
  197.   result->ob_type = &varlinktype;
  198.   /*  _Py_NewReference(result);  Does not seem to be necessary */
  199.   result->nvars = 0;
  200.   result->maxvars = 64;
  201.   result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *));
  202.   result->vars[0] = 0;
  203.   result->ob_refcnt = 0;
  204.   Py_XINCREF((PyObject *) result);
  205.   return ((PyObject*) result);
  206. }
  207.  
  208. SWIGSTATIC void
  209. SWIG_addvarlink(PyObject *p, char *name,
  210.        PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p))
  211. {
  212.   swig_varlinkobject *v;
  213.   v= (swig_varlinkobject *) p;
  214.     
  215.   if (v->nvars >= v->maxvars -1) {
  216.     v->maxvars = 2*v->maxvars;
  217.     v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *));
  218.     if (v->vars == NULL) {
  219.       fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n");
  220.       exit(1);
  221.     }
  222.   }
  223.   v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  224.   v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1);
  225.   strcpy(v->vars[v->nvars]->name,name);
  226.   v->vars[v->nvars]->get_attr = get_attr;
  227.   v->vars[v->nvars]->set_attr = set_attr;
  228.   v->nvars++;
  229.   v->vars[v->nvars] = 0;
  230. }
  231.  
  232.  
  233.  
  234. /*****************************************************************************
  235.  * $Header: /usr/local/cvsroot/swig/swig1/swig_lib/swigptr.swg,v 1.1.1.1 1999/01/21 11:16:42 harcoh Exp $
  236.  *
  237.  * swigptr.swg
  238.  *
  239.  * This file contains supporting code for the SWIG run-time type checking
  240.  * mechanism.  The following functions are available :
  241.  *
  242.  * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
  243.  *
  244.  *      Registers a new type-mapping with the type-checker.  origtype is the
  245.  *      original datatype and newtype is an equivalent type.  cast is optional
  246.  *      pointer to a function to cast pointer values between types (this
  247.  *      is typically used to cast pointers from derived classes to base classes in C++)
  248.  *      
  249.  * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
  250.  *     
  251.  *      Makes a pointer string from a pointer and typestring.  The result is returned
  252.  *      in buffer which is assumed to hold enough space for the result.
  253.  *
  254.  * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
  255.  *
  256.  *      Gets a pointer value from a string.  If there is a type-mismatch, returns
  257.  *      a character string to the received type.  On success, returns NULL.
  258.  *
  259.  *
  260.  * You can remap these functions by making a file called "swigptr.swg" in
  261.  * your the same directory as the interface file you are wrapping.
  262.  *
  263.  * These functions are normally declared static, but this file can be
  264.  * can be used in a multi-module environment by redefining the symbol
  265.  * SWIGSTATIC.
  266.  *****************************************************************************/
  267.  
  268. #include <stdlib.h>
  269.  
  270. #ifdef SWIG_GLOBAL
  271. #ifdef __cplusplus
  272. #define SWIGSTATIC extern "C"
  273. #else
  274. #define SWIGSTATIC
  275. #endif
  276. #endif
  277.  
  278. #ifndef SWIGSTATIC
  279. #define SWIGSTATIC static
  280. #endif
  281.  
  282.  
  283. /* SWIG pointer structure */
  284.  
  285. typedef struct SwigPtrType {
  286.   char               *name;               /* Datatype name                  */
  287.   int                 len;                /* Length (used for optimization) */
  288.   void               *(*cast)(void *);    /* Pointer casting function       */
  289.   struct SwigPtrType *next;               /* Linked list pointer            */
  290. } SwigPtrType;
  291.  
  292. /* Pointer cache structure */
  293.  
  294. typedef struct {
  295.   int                 stat;               /* Status (valid) bit             */
  296.   SwigPtrType        *tp;                 /* Pointer to type structure      */
  297.   char                name[256];          /* Given datatype name            */
  298.   char                mapped[256];        /* Equivalent name                */
  299. } SwigCacheType;
  300.  
  301. /* Some variables  */
  302.  
  303. static int SwigPtrMax  = 64;           /* Max entries that can be currently held */
  304.                                        /* This value may be adjusted dynamically */
  305. static int SwigPtrN    = 0;            /* Current number of entries              */
  306. static int SwigPtrSort = 0;            /* Status flag indicating sort            */
  307. static int SwigStart[256];             /* Starting positions of types            */
  308.  
  309. /* Pointer table */
  310. static SwigPtrType *SwigPtrTable = 0;  /* Table containing pointer equivalences  */
  311.  
  312. /* Cached values */
  313.  
  314. #define SWIG_CACHESIZE  8
  315. #define SWIG_CACHEMASK  0x7
  316. static SwigCacheType SwigCache[SWIG_CACHESIZE];  
  317. static int SwigCacheIndex = 0;
  318. static int SwigLastCache = 0;
  319.  
  320. /* Sort comparison function */
  321. static int swigsort(const void *data1, const void *data2) {
  322.     SwigPtrType *d1 = (SwigPtrType *) data1;
  323.     SwigPtrType *d2 = (SwigPtrType *) data2;
  324.     return strcmp(d1->name,d2->name);
  325. }
  326.  
  327. /* Binary Search function */
  328. static int swigcmp(const void *key, const void *data) {
  329.   char *k = (char *) key;
  330.   SwigPtrType *d = (SwigPtrType *) data;
  331.   return strncmp(k,d->name,d->len);
  332. }
  333.  
  334. /* Register a new datatype with the type-checker */
  335.  
  336. SWIGSTATIC 
  337. void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) {
  338.  
  339.   int i;
  340.   SwigPtrType *t = 0,*t1;
  341.  
  342.   /* Allocate the pointer table if necessary */
  343.  
  344.   if (!SwigPtrTable) {     
  345.     SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType));
  346.     SwigPtrN = 0;
  347.   }
  348.   /* Grow the table */
  349.   if (SwigPtrN >= SwigPtrMax) {
  350.     SwigPtrMax = 2*SwigPtrMax;
  351.     SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType));
  352.   }
  353.   for (i = 0; i < SwigPtrN; i++)
  354.     if (strcmp(SwigPtrTable[i].name,origtype) == 0) {
  355.       t = &SwigPtrTable[i];
  356.       break;
  357.     }
  358.   if (!t) {
  359.     t = &SwigPtrTable[SwigPtrN];
  360.     t->name = origtype;
  361.     t->len = strlen(t->name);
  362.     t->cast = 0;
  363.     t->next = 0;
  364.     SwigPtrN++;
  365.   }
  366.  
  367.   /* Check for existing entry */
  368.  
  369.   while (t->next) {
  370.     if ((strcmp(t->name,newtype) == 0)) {
  371.       if (cast) t->cast = cast;
  372.       return;
  373.     }
  374.     t = t->next;
  375.   }
  376.   
  377.   /* Now place entry (in sorted order) */
  378.  
  379.   t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType));
  380.   t1->name = newtype;
  381.   t1->len = strlen(t1->name);
  382.   t1->cast = cast;
  383.   t1->next = 0;            
  384.   t->next = t1;           
  385.   SwigPtrSort = 0;
  386. }
  387.  
  388. /* Make a pointer value string */
  389.  
  390. SWIGSTATIC 
  391. void SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
  392.   static char _hex[16] =
  393.   {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
  394.    'a', 'b', 'c', 'd', 'e', 'f'};
  395.   unsigned long _p, _s;
  396.   char _result[20], *_r;    /* Note : a 64-bit hex number = 16 digits */
  397.   _r = _result;
  398.   _p = (unsigned long) _ptr;
  399.   if (_p > 0) {
  400.     while (_p > 0) {
  401.       _s = _p & 0xf;
  402.       *(_r++) = _hex[_s];
  403.       _p = _p >> 4;
  404.     }
  405.     *_r = '_';
  406.     while (_r >= _result)
  407.       *(_c++) = *(_r--);
  408.   } else {
  409.     strcpy (_c, "NULL");
  410.   }
  411.   if (_ptr)
  412.     strcpy (_c, type);
  413. }
  414.  
  415. /* Define for backwards compatibility */
  416.  
  417. #define _swig_make_hex   SWIG_MakePtr 
  418.  
  419. /* Function for getting a pointer value */
  420.  
  421. SWIGSTATIC 
  422. char *SWIG_GetPtr(char *_c, void **ptr, char *_t)
  423. {
  424.   unsigned long _p;
  425.   char temp_type[256];
  426.   char *name;
  427.   int  i, len;
  428.   SwigPtrType *sp,*tp;
  429.   SwigCacheType *cache;
  430.   int  start, end;
  431.   _p = 0;
  432.  
  433.   /* Pointer values must start with leading underscore */
  434.   if (*_c == '_') {
  435.       _c++;
  436.       /* Extract hex value from pointer */
  437.       while (*_c) {
  438.       if ((*_c >= '0') && (*_c <= '9'))
  439.         _p = (_p << 4) + (*_c - '0');
  440.       else if ((*_c >= 'a') && (*_c <= 'f'))
  441.         _p = (_p << 4) + ((*_c - 'a') + 10);
  442.       else
  443.         break;
  444.       _c++;
  445.       }
  446.  
  447.       if (_t) {
  448.     if (strcmp(_t,_c)) { 
  449.       if (!SwigPtrSort) {
  450.         qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort); 
  451.         for (i = 0; i < 256; i++) {
  452.           SwigStart[i] = SwigPtrN;
  453.         }
  454.         for (i = SwigPtrN-1; i >= 0; i--) {
  455.           SwigStart[(int) (SwigPtrTable[i].name[1])] = i;
  456.         }
  457.         for (i = 255; i >= 1; i--) {
  458.           if (SwigStart[i-1] > SwigStart[i])
  459.         SwigStart[i-1] = SwigStart[i];
  460.         }
  461.         SwigPtrSort = 1;
  462.         for (i = 0; i < SWIG_CACHESIZE; i++)  
  463.           SwigCache[i].stat = 0;
  464.       }
  465.       
  466.       /* First check cache for matches.  Uses last cache value as starting point */
  467.       cache = &SwigCache[SwigLastCache];
  468.       for (i = 0; i < SWIG_CACHESIZE; i++) {
  469.         if (cache->stat) {
  470.           if (strcmp(_t,cache->name) == 0) {
  471.         if (strcmp(_c,cache->mapped) == 0) {
  472.           cache->stat++;
  473.           *ptr = (void *) _p;
  474.           if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr);
  475.           return (char *) 0;
  476.         }
  477.           }
  478.         }
  479.         SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK;
  480.         if (!SwigLastCache) cache = SwigCache;
  481.         else cache++;
  482.       }
  483.       /* We have a type mismatch.  Will have to look through our type
  484.          mapping table to figure out whether or not we can accept this datatype */
  485.  
  486.       start = SwigStart[(int) _t[1]];
  487.       end = SwigStart[(int) _t[1]+1];
  488.       sp = &SwigPtrTable[start];
  489.       while (start < end) {
  490.         if (swigcmp(_t,sp) == 0) break;
  491.         sp++;
  492.         start++;
  493.       }
  494.       if (start >= end) sp = 0;
  495.       /* Try to find a match for this */
  496.       if (sp) {
  497.         while (swigcmp(_t,sp) == 0) {
  498.           name = sp->name;
  499.           len = sp->len;
  500.           tp = sp->next;
  501.           /* Try to find entry for our given datatype */
  502.           while(tp) {
  503.         if (tp->len >= 255) {
  504.           return _c;
  505.         }
  506.         strcpy(temp_type,tp->name);
  507.         strncat(temp_type,_t+len,255-tp->len);
  508.         if (strcmp(_c,temp_type) == 0) {
  509.           
  510.           strcpy(SwigCache[SwigCacheIndex].mapped,_c);
  511.           strcpy(SwigCache[SwigCacheIndex].name,_t);
  512.           SwigCache[SwigCacheIndex].stat = 1;
  513.           SwigCache[SwigCacheIndex].tp = tp;
  514.           SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK;
  515.           
  516.           /* Get pointer value */
  517.           *ptr = (void *) _p;
  518.           if (tp->cast) *ptr = (*(tp->cast))(*ptr);
  519.           return (char *) 0;
  520.         }
  521.         tp = tp->next;
  522.           }
  523.           sp++;
  524.           /* Hmmm. Didn't find it this time */
  525.         }
  526.       }
  527.       /* Didn't find any sort of match for this data.  
  528.          Get the pointer value and return the received type */
  529.       *ptr = (void *) _p;
  530.       return _c;
  531.     } else {
  532.       /* Found a match on the first try.  Return pointer value */
  533.       *ptr = (void *) _p;
  534.       return (char *) 0;
  535.     }
  536.       } else {
  537.     /* No type specified.  Good luck */
  538.     *ptr = (void *) _p;
  539.     return (char *) 0;
  540.       }
  541.   } else {
  542.     if (strcmp (_c, "NULL") == 0) {
  543.     *ptr = (void *) 0;
  544.     return (char *) 0;
  545.     }
  546.     *ptr = (void *) 0;    
  547.     return _c;
  548.   }
  549. }
  550.  
  551. /* Compatibility mode */
  552.  
  553. #define _swig_get_hex  SWIG_GetPtr
  554.  
  555. #define SWIG_init    initpdflib
  556.  
  557. #define SWIG_name    "pdflib"
  558.  
  559. #define  SWIG_MemoryError    1
  560. #define  SWIG_IOError        2
  561. #define  SWIG_RuntimeError   3
  562. #define  SWIG_IndexError     4
  563. #define  SWIG_TypeError      5
  564. #define  SWIG_DivisionByZero 6
  565. #define  SWIG_OverflowError  7
  566. #define  SWIG_SyntaxError    8
  567. #define  SWIG_ValueError     9
  568. #define  SWIG_SystemError   10
  569. #define  SWIG_UnknownError  99
  570.  
  571. static void _SWIG_exception(int code, char *msg) {
  572.   switch(code) {
  573.   case SWIG_MemoryError:
  574.     PyErr_SetString(PyExc_MemoryError,msg);
  575.     break;
  576.   case SWIG_IOError:
  577.     PyErr_SetString(PyExc_IOError,msg);
  578.     break;
  579.   case SWIG_RuntimeError:
  580.     PyErr_SetString(PyExc_RuntimeError,msg);
  581.     break;
  582.   case SWIG_IndexError:
  583.     PyErr_SetString(PyExc_IndexError,msg);
  584.     break;
  585.   case SWIG_TypeError:
  586.     PyErr_SetString(PyExc_TypeError,msg);
  587.     break;
  588.   case SWIG_DivisionByZero:
  589.     PyErr_SetString(PyExc_ZeroDivisionError,msg);
  590.     break;
  591.   case SWIG_OverflowError:
  592.     PyErr_SetString(PyExc_OverflowError,msg);
  593.     break;
  594.   case SWIG_SyntaxError:
  595.     PyErr_SetString(PyExc_SyntaxError,msg);
  596.     break;
  597.   case SWIG_ValueError:
  598.     PyErr_SetString(PyExc_ValueError,msg);
  599.     break;
  600.   case SWIG_SystemError:
  601.     PyErr_SetString(PyExc_SystemError,msg);
  602.     break;
  603.   default:
  604.     PyErr_SetString(PyExc_RuntimeError,msg);
  605.     break;
  606.   }
  607. }
  608.  
  609. #define SWIG_exception(a,b) _SWIG_exception(a,b); return NULL
  610.  
  611. #include <setjmp.h>
  612.  
  613. /* The following sick stuff is an attempt to make recent Perl versions
  614.  * work with recent SWIG versions compiled with recent MS VC++ versions.
  615.  */
  616. #ifdef _MSC_VER
  617.     #undef setjmp
  618.     #define setjmp _setjmp
  619.     #undef longjmp
  620. #endif
  621.  
  622. #include "pdflib.h"
  623.  
  624. /* Map PDFlib errors to SWIG exceptions */
  625. static const int pdf_swig_exceptions[] = {
  626.     0,
  627.     SWIG_MemoryError,    /* PDF_MemoryError    1 */
  628.     SWIG_IOError,    /* PDF_IOError        2 */
  629.     SWIG_RuntimeError,    /* PDF_RuntimeError   3 */
  630.     SWIG_IndexError,    /* PDF_IndexError     4 */
  631.     SWIG_TypeError,    /* PDF_TypeError      5 */
  632.     SWIG_DivisionByZero,/* PDF_DivisionByZero 6 */
  633.     SWIG_OverflowError,    /* PDF_OverflowError  7 */
  634.     SWIG_SyntaxError,    /* PDF_SyntaxError    8 */
  635.     SWIG_ValueError,    /* PDF_ValueError     9 */
  636.     SWIG_SystemError,    /* PDF_SystemError   10 */
  637.     SWIG_UnknownError,    /* PDF_NonfatalError 11 */ /* PDFlib-special */
  638.     SWIG_UnknownError,    /* PDF_UnknownError  12 */
  639. };
  640.  
  641. /* SWIG exception handling is currently not thread-safe! */
  642. static jmp_buf        exception_buffer;
  643. static int        exception_status;
  644. static char        error_message[256];
  645.  
  646. /* Exception handling for SWIG. Note that these are not used for the C API */
  647. #define try        if ((exception_status = setjmp(exception_buffer)) == 0)
  648. #define catch(error)    else if (exception_status == error)
  649. #define throw(error)    longjmp(exception_buffer, error)
  650. #define finally        else
  651.  
  652. /* PDFlib error handler for the SWIG libraries */
  653.  
  654. static void
  655. pdf_swig_errorhandler(PDF *p, int type, const char* shortmsg)
  656. {
  657.     sprintf(error_message, "PDFlib: %s\n", shortmsg);
  658.  
  659.     /* Issue a warning message and continue for non-fatal errors */
  660.     if (type == PDF_NonfatalError) {
  661.     fprintf(stderr, error_message);
  662.     return;
  663.     }
  664.     
  665.     /* Clean up PDFlib internals and delete p in all other cases */
  666.     if (p != NULL)
  667.     PDF_delete(p);
  668.  
  669.     /* ...and throw an exception */
  670.     throw(type);
  671. }
  672.  
  673. /* Force the SWIG error handler for all clients */
  674. #define PDF_new() PDF_new2(pdf_swig_errorhandler, NULL, NULL, NULL, NULL)
  675.  
  676. /* export the PDFlib routines to the shared library */
  677. #ifdef __MWERKS__
  678. #pragma export on
  679. #endif
  680.  
  681. static PyObject *_wrap_PDF_boot(PyObject *self, PyObject *args) {
  682.     PyObject * _resultobj;
  683.  
  684.     self = self;
  685.     if(!PyArg_ParseTuple(args,":PDF_boot")) 
  686.         return NULL;
  687. {
  688.     try {     PDF_boot();
  689.  }
  690.     else {
  691.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  692.     }
  693. }    Py_INCREF(Py_None);
  694.     _resultobj = Py_None;
  695.     return _resultobj;
  696. }
  697.  
  698. static PyObject *_wrap_PDF_shutdown(PyObject *self, PyObject *args) {
  699.     PyObject * _resultobj;
  700.  
  701.     self = self;
  702.     if(!PyArg_ParseTuple(args,":PDF_shutdown")) 
  703.         return NULL;
  704. {
  705.     try {     PDF_shutdown();
  706.  }
  707.     else {
  708.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  709.     }
  710. }    Py_INCREF(Py_None);
  711.     _resultobj = Py_None;
  712.     return _resultobj;
  713. }
  714.  
  715. static PyObject *_wrap_PDF_new(PyObject *self, PyObject *args) {
  716.     PyObject * _resultobj;
  717.     PDF * _result;
  718.     char _ptemp[128];
  719.  
  720.     self = self;
  721.     if(!PyArg_ParseTuple(args,":PDF_new")) 
  722.         return NULL;
  723. {
  724.     try {     _result = (PDF *)PDF_new();
  725.  }
  726.     else {
  727.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  728.     }
  729. }    SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_p");
  730.     _resultobj = Py_BuildValue("s",_ptemp);
  731.     return _resultobj;
  732. }
  733.  
  734. static PyObject *_wrap_PDF_delete(PyObject *self, PyObject *args) {
  735.     PyObject * _resultobj;
  736.     PDF * _arg0;
  737.     char * _argc0 = 0;
  738.  
  739.     self = self;
  740.     if(!PyArg_ParseTuple(args,"s:PDF_delete",&_argc0)) 
  741.         return NULL;
  742.     if (_argc0) {
  743.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  744.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_delete. Expected _PDF_p.");
  745.         return NULL;
  746.         }
  747.     }
  748. {
  749.     try {     PDF_delete(_arg0);
  750.  }
  751.     else {
  752.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  753.     }
  754. }    Py_INCREF(Py_None);
  755.     _resultobj = Py_None;
  756.     return _resultobj;
  757. }
  758.  
  759. static PyObject *_wrap_PDF_open_file(PyObject *self, PyObject *args) {
  760.     PyObject * _resultobj;
  761.     int  _result;
  762.     PDF * _arg0;
  763.     char * _arg1;
  764.     char * _argc0 = 0;
  765.  
  766.     self = self;
  767.     if(!PyArg_ParseTuple(args,"ss:PDF_open_file",&_argc0,&_arg1)) 
  768.         return NULL;
  769.     if (_argc0) {
  770.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  771.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_file. Expected _PDF_p.");
  772.         return NULL;
  773.         }
  774.     }
  775. {
  776.     try {     _result = (int )PDF_open_file(_arg0,_arg1);
  777.  }
  778.     else {
  779.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  780.     }
  781. }    _resultobj = Py_BuildValue("i",_result);
  782.     return _resultobj;
  783. }
  784.  
  785. static PyObject *_wrap_PDF_close(PyObject *self, PyObject *args) {
  786.     PyObject * _resultobj;
  787.     PDF * _arg0;
  788.     char * _argc0 = 0;
  789.  
  790.     self = self;
  791.     if(!PyArg_ParseTuple(args,"s:PDF_close",&_argc0)) 
  792.         return NULL;
  793.     if (_argc0) {
  794.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  795.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close. Expected _PDF_p.");
  796.         return NULL;
  797.         }
  798.     }
  799. {
  800.     try {     PDF_close(_arg0);
  801.  }
  802.     else {
  803.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  804.     }
  805. }    Py_INCREF(Py_None);
  806.     _resultobj = Py_None;
  807.     return _resultobj;
  808. }
  809.  
  810. static PyObject *_wrap_PDF_begin_page(PyObject *self, PyObject *args) {
  811.     PyObject * _resultobj;
  812.     PDF * _arg0;
  813.     float  _arg1;
  814.     float  _arg2;
  815.     char * _argc0 = 0;
  816.  
  817.     self = self;
  818.     if(!PyArg_ParseTuple(args,"sff:PDF_begin_page",&_argc0,&_arg1,&_arg2)) 
  819.         return NULL;
  820.     if (_argc0) {
  821.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  822.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_begin_page. Expected _PDF_p.");
  823.         return NULL;
  824.         }
  825.     }
  826. {
  827.     try {     PDF_begin_page(_arg0,_arg1,_arg2);
  828.  }
  829.     else {
  830.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  831.     }
  832. }    Py_INCREF(Py_None);
  833.     _resultobj = Py_None;
  834.     return _resultobj;
  835. }
  836.  
  837. static PyObject *_wrap_PDF_end_page(PyObject *self, PyObject *args) {
  838.     PyObject * _resultobj;
  839.     PDF * _arg0;
  840.     char * _argc0 = 0;
  841.  
  842.     self = self;
  843.     if(!PyArg_ParseTuple(args,"s:PDF_end_page",&_argc0)) 
  844.         return NULL;
  845.     if (_argc0) {
  846.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  847.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_end_page. Expected _PDF_p.");
  848.         return NULL;
  849.         }
  850.     }
  851. {
  852.     try {     PDF_end_page(_arg0);
  853.  }
  854.     else {
  855.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  856.     }
  857. }    Py_INCREF(Py_None);
  858.     _resultobj = Py_None;
  859.     return _resultobj;
  860. }
  861.  
  862. static PyObject *_wrap_PDF_set_parameter(PyObject *self, PyObject *args) {
  863.     PyObject * _resultobj;
  864.     PDF * _arg0;
  865.     char * _arg1;
  866.     char * _arg2;
  867.     char * _argc0 = 0;
  868.  
  869.     self = self;
  870.     if(!PyArg_ParseTuple(args,"sss:PDF_set_parameter",&_argc0,&_arg1,&_arg2)) 
  871.         return NULL;
  872.     if (_argc0) {
  873.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  874.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_parameter. Expected _PDF_p.");
  875.         return NULL;
  876.         }
  877.     }
  878. {
  879.     try {     PDF_set_parameter(_arg0,_arg1,_arg2);
  880.  }
  881.     else {
  882.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  883.     }
  884. }    Py_INCREF(Py_None);
  885.     _resultobj = Py_None;
  886.     return _resultobj;
  887. }
  888.  
  889. static PyObject *_wrap_PDF_findfont(PyObject *self, PyObject *args) {
  890.     PyObject * _resultobj;
  891.     int  _result;
  892.     PDF * _arg0;
  893.     char * _arg1;
  894.     char * _arg2;
  895.     int  _arg3;
  896.     char * _argc0 = 0;
  897.  
  898.     self = self;
  899.     if(!PyArg_ParseTuple(args,"sssi:PDF_findfont",&_argc0,&_arg1,&_arg2,&_arg3)) 
  900.         return NULL;
  901.     if (_argc0) {
  902.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  903.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_findfont. Expected _PDF_p.");
  904.         return NULL;
  905.         }
  906.     }
  907. {
  908.     try {     _result = (int )PDF_findfont(_arg0,_arg1,_arg2,_arg3);
  909.  }
  910.     else {
  911.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  912.     }
  913. }    _resultobj = Py_BuildValue("i",_result);
  914.     return _resultobj;
  915. }
  916.  
  917. static PyObject *_wrap_PDF_setfont(PyObject *self, PyObject *args) {
  918.     PyObject * _resultobj;
  919.     PDF * _arg0;
  920.     int  _arg1;
  921.     float  _arg2;
  922.     char * _argc0 = 0;
  923.  
  924.     self = self;
  925.     if(!PyArg_ParseTuple(args,"sif:PDF_setfont",&_argc0,&_arg1,&_arg2)) 
  926.         return NULL;
  927.     if (_argc0) {
  928.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  929.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setfont. Expected _PDF_p.");
  930.         return NULL;
  931.         }
  932.     }
  933. {
  934.     try {     PDF_setfont(_arg0,_arg1,_arg2);
  935.  }
  936.     else {
  937.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  938.     }
  939. }    Py_INCREF(Py_None);
  940.     _resultobj = Py_None;
  941.     return _resultobj;
  942. }
  943.  
  944. static PyObject *_wrap_PDF_set_font(PyObject *self, PyObject *args) {
  945.     PyObject * _resultobj;
  946.     PDF * _arg0;
  947.     char * _arg1;
  948.     float  _arg2;
  949.     char * _arg3;
  950.     char * _argc0 = 0;
  951.  
  952.     self = self;
  953.     if(!PyArg_ParseTuple(args,"ssfs:PDF_set_font",&_argc0,&_arg1,&_arg2,&_arg3)) 
  954.         return NULL;
  955.     if (_argc0) {
  956.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  957.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_font. Expected _PDF_p.");
  958.         return NULL;
  959.         }
  960.     }
  961. {
  962.     try {     PDF_set_font(_arg0,_arg1,_arg2,_arg3);
  963.  }
  964.     else {
  965.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  966.     }
  967. }    Py_INCREF(Py_None);
  968.     _resultobj = Py_None;
  969.     return _resultobj;
  970. }
  971.  
  972. static PyObject *_wrap_PDF_get_fontname(PyObject *self, PyObject *args) {
  973.     PyObject * _resultobj;
  974.     char * _result;
  975.     PDF * _arg0;
  976.     char * _argc0 = 0;
  977.  
  978.     self = self;
  979.     if(!PyArg_ParseTuple(args,"s:PDF_get_fontname",&_argc0)) 
  980.         return NULL;
  981.     if (_argc0) {
  982.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  983.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_get_fontname. Expected _PDF_p.");
  984.         return NULL;
  985.         }
  986.     }
  987. {
  988.     try {     _result = (char *)PDF_get_fontname(_arg0);
  989.  }
  990.     else {
  991.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  992.     }
  993. }    _resultobj = Py_BuildValue("s", _result);
  994.     return _resultobj;
  995. }
  996.  
  997. static PyObject *_wrap_PDF_get_fontsize(PyObject *self, PyObject *args) {
  998.     PyObject * _resultobj;
  999.     float  _result;
  1000.     PDF * _arg0;
  1001.     char * _argc0 = 0;
  1002.  
  1003.     self = self;
  1004.     if(!PyArg_ParseTuple(args,"s:PDF_get_fontsize",&_argc0)) 
  1005.         return NULL;
  1006.     if (_argc0) {
  1007.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1008.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_get_fontsize. Expected _PDF_p.");
  1009.         return NULL;
  1010.         }
  1011.     }
  1012. {
  1013.     try {     _result = (float )PDF_get_fontsize(_arg0);
  1014.  }
  1015.     else {
  1016.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1017.     }
  1018. }    _resultobj = Py_BuildValue("f",_result);
  1019.     return _resultobj;
  1020. }
  1021.  
  1022. static PyObject *_wrap_PDF_get_font(PyObject *self, PyObject *args) {
  1023.     PyObject * _resultobj;
  1024.     int  _result;
  1025.     PDF * _arg0;
  1026.     char * _argc0 = 0;
  1027.  
  1028.     self = self;
  1029.     if(!PyArg_ParseTuple(args,"s:PDF_get_font",&_argc0)) 
  1030.         return NULL;
  1031.     if (_argc0) {
  1032.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1033.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_get_font. Expected _PDF_p.");
  1034.         return NULL;
  1035.         }
  1036.     }
  1037. {
  1038.     try {     _result = (int )PDF_get_font(_arg0);
  1039.  }
  1040.     else {
  1041.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1042.     }
  1043. }    _resultobj = Py_BuildValue("i",_result);
  1044.     return _resultobj;
  1045. }
  1046.  
  1047. static PyObject *_wrap_PDF_show(PyObject *self, PyObject *args) {
  1048.     PyObject * _resultobj;
  1049.     PDF * _arg0;
  1050.     char * _arg1;
  1051.     char * _argc0 = 0;
  1052.  
  1053.     self = self;
  1054.     if(!PyArg_ParseTuple(args,"ss:PDF_show",&_argc0,&_arg1)) 
  1055.         return NULL;
  1056.     if (_argc0) {
  1057.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1058.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show. Expected _PDF_p.");
  1059.         return NULL;
  1060.         }
  1061.     }
  1062. {
  1063.     try {     PDF_show(_arg0,_arg1);
  1064.  }
  1065.     else {
  1066.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1067.     }
  1068. }    Py_INCREF(Py_None);
  1069.     _resultobj = Py_None;
  1070.     return _resultobj;
  1071. }
  1072.  
  1073. static PyObject *_wrap_PDF_show_xy(PyObject *self, PyObject *args) {
  1074.     PyObject * _resultobj;
  1075.     PDF * _arg0;
  1076.     char * _arg1;
  1077.     float  _arg2;
  1078.     float  _arg3;
  1079.     char * _argc0 = 0;
  1080.  
  1081.     self = self;
  1082.     if(!PyArg_ParseTuple(args,"ssff:PDF_show_xy",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1083.         return NULL;
  1084.     if (_argc0) {
  1085.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1086.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show_xy. Expected _PDF_p.");
  1087.         return NULL;
  1088.         }
  1089.     }
  1090. {
  1091.     try {     PDF_show_xy(_arg0,_arg1,_arg2,_arg3);
  1092.  }
  1093.     else {
  1094.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1095.     }
  1096. }    Py_INCREF(Py_None);
  1097.     _resultobj = Py_None;
  1098.     return _resultobj;
  1099. }
  1100.  
  1101. static PyObject *_wrap_PDF_continue_text(PyObject *self, PyObject *args) {
  1102.     PyObject * _resultobj;
  1103.     PDF * _arg0;
  1104.     char * _arg1;
  1105.     char * _argc0 = 0;
  1106.  
  1107.     self = self;
  1108.     if(!PyArg_ParseTuple(args,"ss:PDF_continue_text",&_argc0,&_arg1)) 
  1109.         return NULL;
  1110.     if (_argc0) {
  1111.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1112.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_continue_text. Expected _PDF_p.");
  1113.         return NULL;
  1114.         }
  1115.     }
  1116. {
  1117.     try {     PDF_continue_text(_arg0,_arg1);
  1118.  }
  1119.     else {
  1120.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1121.     }
  1122. }    Py_INCREF(Py_None);
  1123.     _resultobj = Py_None;
  1124.     return _resultobj;
  1125. }
  1126.  
  1127. static PyObject *_wrap_PDF_set_leading(PyObject *self, PyObject *args) {
  1128.     PyObject * _resultobj;
  1129.     PDF * _arg0;
  1130.     float  _arg1;
  1131.     char * _argc0 = 0;
  1132.  
  1133.     self = self;
  1134.     if(!PyArg_ParseTuple(args,"sf:PDF_set_leading",&_argc0,&_arg1)) 
  1135.         return NULL;
  1136.     if (_argc0) {
  1137.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1138.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_leading. Expected _PDF_p.");
  1139.         return NULL;
  1140.         }
  1141.     }
  1142. {
  1143.     try {     PDF_set_leading(_arg0,_arg1);
  1144.  }
  1145.     else {
  1146.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1147.     }
  1148. }    Py_INCREF(Py_None);
  1149.     _resultobj = Py_None;
  1150.     return _resultobj;
  1151. }
  1152.  
  1153. static PyObject *_wrap_PDF_set_text_rise(PyObject *self, PyObject *args) {
  1154.     PyObject * _resultobj;
  1155.     PDF * _arg0;
  1156.     float  _arg1;
  1157.     char * _argc0 = 0;
  1158.  
  1159.     self = self;
  1160.     if(!PyArg_ParseTuple(args,"sf:PDF_set_text_rise",&_argc0,&_arg1)) 
  1161.         return NULL;
  1162.     if (_argc0) {
  1163.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1164.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rise. Expected _PDF_p.");
  1165.         return NULL;
  1166.         }
  1167.     }
  1168. {
  1169.     try {     PDF_set_text_rise(_arg0,_arg1);
  1170.  }
  1171.     else {
  1172.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1173.     }
  1174. }    Py_INCREF(Py_None);
  1175.     _resultobj = Py_None;
  1176.     return _resultobj;
  1177. }
  1178.  
  1179. static PyObject *_wrap_PDF_set_horiz_scaling(PyObject *self, PyObject *args) {
  1180.     PyObject * _resultobj;
  1181.     PDF * _arg0;
  1182.     float  _arg1;
  1183.     char * _argc0 = 0;
  1184.  
  1185.     self = self;
  1186.     if(!PyArg_ParseTuple(args,"sf:PDF_set_horiz_scaling",&_argc0,&_arg1)) 
  1187.         return NULL;
  1188.     if (_argc0) {
  1189.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1190.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_horiz_scaling. Expected _PDF_p.");
  1191.         return NULL;
  1192.         }
  1193.     }
  1194. {
  1195.     try {     PDF_set_horiz_scaling(_arg0,_arg1);
  1196.  }
  1197.     else {
  1198.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1199.     }
  1200. }    Py_INCREF(Py_None);
  1201.     _resultobj = Py_None;
  1202.     return _resultobj;
  1203. }
  1204.  
  1205. static PyObject *_wrap_PDF_set_text_rendering(PyObject *self, PyObject *args) {
  1206.     PyObject * _resultobj;
  1207.     PDF * _arg0;
  1208.     int  _arg1;
  1209.     char * _argc0 = 0;
  1210.  
  1211.     self = self;
  1212.     if(!PyArg_ParseTuple(args,"si:PDF_set_text_rendering",&_argc0,&_arg1)) 
  1213.         return NULL;
  1214.     if (_argc0) {
  1215.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1216.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rendering. Expected _PDF_p.");
  1217.         return NULL;
  1218.         }
  1219.     }
  1220. {
  1221.     try {     PDF_set_text_rendering(_arg0,_arg1);
  1222.  }
  1223.     else {
  1224.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1225.     }
  1226. }    Py_INCREF(Py_None);
  1227.     _resultobj = Py_None;
  1228.     return _resultobj;
  1229. }
  1230.  
  1231. static PyObject *_wrap_PDF_set_text_matrix(PyObject *self, PyObject *args) {
  1232.     PyObject * _resultobj;
  1233.     PDF * _arg0;
  1234.     float  _arg1;
  1235.     float  _arg2;
  1236.     float  _arg3;
  1237.     float  _arg4;
  1238.     float  _arg5;
  1239.     float  _arg6;
  1240.     char * _argc0 = 0;
  1241.  
  1242.     self = self;
  1243.     if(!PyArg_ParseTuple(args,"sffffff:PDF_set_text_matrix",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) 
  1244.         return NULL;
  1245.     if (_argc0) {
  1246.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1247.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_matrix. Expected _PDF_p.");
  1248.         return NULL;
  1249.         }
  1250.     }
  1251. {
  1252.     try {     PDF_set_text_matrix(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
  1253.  }
  1254.     else {
  1255.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1256.     }
  1257. }    Py_INCREF(Py_None);
  1258.     _resultobj = Py_None;
  1259.     return _resultobj;
  1260. }
  1261.  
  1262. static PyObject *_wrap_PDF_set_text_pos(PyObject *self, PyObject *args) {
  1263.     PyObject * _resultobj;
  1264.     PDF * _arg0;
  1265.     float  _arg1;
  1266.     float  _arg2;
  1267.     char * _argc0 = 0;
  1268.  
  1269.     self = self;
  1270.     if(!PyArg_ParseTuple(args,"sff:PDF_set_text_pos",&_argc0,&_arg1,&_arg2)) 
  1271.         return NULL;
  1272.     if (_argc0) {
  1273.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1274.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_pos. Expected _PDF_p.");
  1275.         return NULL;
  1276.         }
  1277.     }
  1278. {
  1279.     try {     PDF_set_text_pos(_arg0,_arg1,_arg2);
  1280.  }
  1281.     else {
  1282.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1283.     }
  1284. }    Py_INCREF(Py_None);
  1285.     _resultobj = Py_None;
  1286.     return _resultobj;
  1287. }
  1288.  
  1289. static PyObject *_wrap_PDF_set_char_spacing(PyObject *self, PyObject *args) {
  1290.     PyObject * _resultobj;
  1291.     PDF * _arg0;
  1292.     float  _arg1;
  1293.     char * _argc0 = 0;
  1294.  
  1295.     self = self;
  1296.     if(!PyArg_ParseTuple(args,"sf:PDF_set_char_spacing",&_argc0,&_arg1)) 
  1297.         return NULL;
  1298.     if (_argc0) {
  1299.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1300.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_char_spacing. Expected _PDF_p.");
  1301.         return NULL;
  1302.         }
  1303.     }
  1304. {
  1305.     try {     PDF_set_char_spacing(_arg0,_arg1);
  1306.  }
  1307.     else {
  1308.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1309.     }
  1310. }    Py_INCREF(Py_None);
  1311.     _resultobj = Py_None;
  1312.     return _resultobj;
  1313. }
  1314.  
  1315. static PyObject *_wrap_PDF_set_word_spacing(PyObject *self, PyObject *args) {
  1316.     PyObject * _resultobj;
  1317.     PDF * _arg0;
  1318.     float  _arg1;
  1319.     char * _argc0 = 0;
  1320.  
  1321.     self = self;
  1322.     if(!PyArg_ParseTuple(args,"sf:PDF_set_word_spacing",&_argc0,&_arg1)) 
  1323.         return NULL;
  1324.     if (_argc0) {
  1325.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1326.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_word_spacing. Expected _PDF_p.");
  1327.         return NULL;
  1328.         }
  1329.     }
  1330. {
  1331.     try {     PDF_set_word_spacing(_arg0,_arg1);
  1332.  }
  1333.     else {
  1334.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1335.     }
  1336. }    Py_INCREF(Py_None);
  1337.     _resultobj = Py_None;
  1338.     return _resultobj;
  1339. }
  1340.  
  1341. static PyObject *_wrap_PDF_stringwidth(PyObject *self, PyObject *args) {
  1342.     PyObject * _resultobj;
  1343.     float  _result;
  1344.     PDF * _arg0;
  1345.     char * _arg1;
  1346.     int  _arg2;
  1347.     float  _arg3;
  1348.     char * _argc0 = 0;
  1349.  
  1350.     self = self;
  1351.     if(!PyArg_ParseTuple(args,"ssif:PDF_stringwidth",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1352.         return NULL;
  1353.     if (_argc0) {
  1354.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1355.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stringwidth. Expected _PDF_p.");
  1356.         return NULL;
  1357.         }
  1358.     }
  1359. {
  1360.     try {     _result = (float )PDF_stringwidth(_arg0,_arg1,_arg2,_arg3);
  1361.  }
  1362.     else {
  1363.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1364.     }
  1365. }    _resultobj = Py_BuildValue("f",_result);
  1366.     return _resultobj;
  1367. }
  1368.  
  1369. static PyObject *_wrap_PDF_setdash(PyObject *self, PyObject *args) {
  1370.     PyObject * _resultobj;
  1371.     PDF * _arg0;
  1372.     float  _arg1;
  1373.     float  _arg2;
  1374.     char * _argc0 = 0;
  1375.  
  1376.     self = self;
  1377.     if(!PyArg_ParseTuple(args,"sff:PDF_setdash",&_argc0,&_arg1,&_arg2)) 
  1378.         return NULL;
  1379.     if (_argc0) {
  1380.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1381.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setdash. Expected _PDF_p.");
  1382.         return NULL;
  1383.         }
  1384.     }
  1385. {
  1386.     try {     PDF_setdash(_arg0,_arg1,_arg2);
  1387.  }
  1388.     else {
  1389.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1390.     }
  1391. }    Py_INCREF(Py_None);
  1392.     _resultobj = Py_None;
  1393.     return _resultobj;
  1394. }
  1395.  
  1396. static PyObject *_wrap_PDF_setpolydash(PyObject *self, PyObject *args) {
  1397.     PyObject * _resultobj;
  1398.     PDF * _arg0;
  1399.     float * _arg1;
  1400.     int  _arg2;
  1401.     char * _argc0 = 0;
  1402.     char * _argc1 = 0;
  1403.  
  1404.     self = self;
  1405.     if(!PyArg_ParseTuple(args,"ssi:PDF_setpolydash",&_argc0,&_argc1,&_arg2)) 
  1406.         return NULL;
  1407.     if (_argc0) {
  1408.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1409.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setpolydash. Expected _PDF_p.");
  1410.         return NULL;
  1411.         }
  1412.     }
  1413.     if (_argc1) {
  1414.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_float_p")) {
  1415.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_setpolydash. Expected _float_p.");
  1416.         return NULL;
  1417.         }
  1418.     }
  1419. {
  1420.     try {     PDF_setpolydash(_arg0,_arg1,_arg2);
  1421.  }
  1422.     else {
  1423.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1424.     }
  1425. }    Py_INCREF(Py_None);
  1426.     _resultobj = Py_None;
  1427.     return _resultobj;
  1428. }
  1429.  
  1430. static PyObject *_wrap_PDF_setflat(PyObject *self, PyObject *args) {
  1431.     PyObject * _resultobj;
  1432.     PDF * _arg0;
  1433.     float  _arg1;
  1434.     char * _argc0 = 0;
  1435.  
  1436.     self = self;
  1437.     if(!PyArg_ParseTuple(args,"sf:PDF_setflat",&_argc0,&_arg1)) 
  1438.         return NULL;
  1439.     if (_argc0) {
  1440.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1441.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setflat. Expected _PDF_p.");
  1442.         return NULL;
  1443.         }
  1444.     }
  1445. {
  1446.     try {     PDF_setflat(_arg0,_arg1);
  1447.  }
  1448.     else {
  1449.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1450.     }
  1451. }    Py_INCREF(Py_None);
  1452.     _resultobj = Py_None;
  1453.     return _resultobj;
  1454. }
  1455.  
  1456. static PyObject *_wrap_PDF_setlinejoin(PyObject *self, PyObject *args) {
  1457.     PyObject * _resultobj;
  1458.     PDF * _arg0;
  1459.     int  _arg1;
  1460.     char * _argc0 = 0;
  1461.  
  1462.     self = self;
  1463.     if(!PyArg_ParseTuple(args,"si:PDF_setlinejoin",&_argc0,&_arg1)) 
  1464.         return NULL;
  1465.     if (_argc0) {
  1466.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1467.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinejoin. Expected _PDF_p.");
  1468.         return NULL;
  1469.         }
  1470.     }
  1471. {
  1472.     try {     PDF_setlinejoin(_arg0,_arg1);
  1473.  }
  1474.     else {
  1475.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1476.     }
  1477. }    Py_INCREF(Py_None);
  1478.     _resultobj = Py_None;
  1479.     return _resultobj;
  1480. }
  1481.  
  1482. static PyObject *_wrap_PDF_setlinecap(PyObject *self, PyObject *args) {
  1483.     PyObject * _resultobj;
  1484.     PDF * _arg0;
  1485.     int  _arg1;
  1486.     char * _argc0 = 0;
  1487.  
  1488.     self = self;
  1489.     if(!PyArg_ParseTuple(args,"si:PDF_setlinecap",&_argc0,&_arg1)) 
  1490.         return NULL;
  1491.     if (_argc0) {
  1492.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1493.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinecap. Expected _PDF_p.");
  1494.         return NULL;
  1495.         }
  1496.     }
  1497. {
  1498.     try {     PDF_setlinecap(_arg0,_arg1);
  1499.  }
  1500.     else {
  1501.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1502.     }
  1503. }    Py_INCREF(Py_None);
  1504.     _resultobj = Py_None;
  1505.     return _resultobj;
  1506. }
  1507.  
  1508. static PyObject *_wrap_PDF_setmiterlimit(PyObject *self, PyObject *args) {
  1509.     PyObject * _resultobj;
  1510.     PDF * _arg0;
  1511.     float  _arg1;
  1512.     char * _argc0 = 0;
  1513.  
  1514.     self = self;
  1515.     if(!PyArg_ParseTuple(args,"sf:PDF_setmiterlimit",&_argc0,&_arg1)) 
  1516.         return NULL;
  1517.     if (_argc0) {
  1518.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1519.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setmiterlimit. Expected _PDF_p.");
  1520.         return NULL;
  1521.         }
  1522.     }
  1523. {
  1524.     try {     PDF_setmiterlimit(_arg0,_arg1);
  1525.  }
  1526.     else {
  1527.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1528.     }
  1529. }    Py_INCREF(Py_None);
  1530.     _resultobj = Py_None;
  1531.     return _resultobj;
  1532. }
  1533.  
  1534. static PyObject *_wrap_PDF_setlinewidth(PyObject *self, PyObject *args) {
  1535.     PyObject * _resultobj;
  1536.     PDF * _arg0;
  1537.     float  _arg1;
  1538.     char * _argc0 = 0;
  1539.  
  1540.     self = self;
  1541.     if(!PyArg_ParseTuple(args,"sf:PDF_setlinewidth",&_argc0,&_arg1)) 
  1542.         return NULL;
  1543.     if (_argc0) {
  1544.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1545.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinewidth. Expected _PDF_p.");
  1546.         return NULL;
  1547.         }
  1548.     }
  1549. {
  1550.     try {     PDF_setlinewidth(_arg0,_arg1);
  1551.  }
  1552.     else {
  1553.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1554.     }
  1555. }    Py_INCREF(Py_None);
  1556.     _resultobj = Py_None;
  1557.     return _resultobj;
  1558. }
  1559.  
  1560. static PyObject *_wrap_PDF_set_fillrule(PyObject *self, PyObject *args) {
  1561.     PyObject * _resultobj;
  1562.     PDF * _arg0;
  1563.     char * _arg1;
  1564.     char * _argc0 = 0;
  1565.  
  1566.     self = self;
  1567.     if(!PyArg_ParseTuple(args,"ss:PDF_set_fillrule",&_argc0,&_arg1)) 
  1568.         return NULL;
  1569.     if (_argc0) {
  1570.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1571.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_fillrule. Expected _PDF_p.");
  1572.         return NULL;
  1573.         }
  1574.     }
  1575. {
  1576.     try {     PDF_set_fillrule(_arg0,_arg1);
  1577.  }
  1578.     else {
  1579.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1580.     }
  1581. }    Py_INCREF(Py_None);
  1582.     _resultobj = Py_None;
  1583.     return _resultobj;
  1584. }
  1585.  
  1586. static PyObject *_wrap_PDF_save(PyObject *self, PyObject *args) {
  1587.     PyObject * _resultobj;
  1588.     PDF * _arg0;
  1589.     char * _argc0 = 0;
  1590.  
  1591.     self = self;
  1592.     if(!PyArg_ParseTuple(args,"s:PDF_save",&_argc0)) 
  1593.         return NULL;
  1594.     if (_argc0) {
  1595.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1596.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_save. Expected _PDF_p.");
  1597.         return NULL;
  1598.         }
  1599.     }
  1600. {
  1601.     try {     PDF_save(_arg0);
  1602.  }
  1603.     else {
  1604.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1605.     }
  1606. }    Py_INCREF(Py_None);
  1607.     _resultobj = Py_None;
  1608.     return _resultobj;
  1609. }
  1610.  
  1611. static PyObject *_wrap_PDF_restore(PyObject *self, PyObject *args) {
  1612.     PyObject * _resultobj;
  1613.     PDF * _arg0;
  1614.     char * _argc0 = 0;
  1615.  
  1616.     self = self;
  1617.     if(!PyArg_ParseTuple(args,"s:PDF_restore",&_argc0)) 
  1618.         return NULL;
  1619.     if (_argc0) {
  1620.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1621.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_restore. Expected _PDF_p.");
  1622.         return NULL;
  1623.         }
  1624.     }
  1625. {
  1626.     try {     PDF_restore(_arg0);
  1627.  }
  1628.     else {
  1629.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1630.     }
  1631. }    Py_INCREF(Py_None);
  1632.     _resultobj = Py_None;
  1633.     return _resultobj;
  1634. }
  1635.  
  1636. static PyObject *_wrap_PDF_translate(PyObject *self, PyObject *args) {
  1637.     PyObject * _resultobj;
  1638.     PDF * _arg0;
  1639.     float  _arg1;
  1640.     float  _arg2;
  1641.     char * _argc0 = 0;
  1642.  
  1643.     self = self;
  1644.     if(!PyArg_ParseTuple(args,"sff:PDF_translate",&_argc0,&_arg1,&_arg2)) 
  1645.         return NULL;
  1646.     if (_argc0) {
  1647.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1648.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_translate. Expected _PDF_p.");
  1649.         return NULL;
  1650.         }
  1651.     }
  1652. {
  1653.     try {     PDF_translate(_arg0,_arg1,_arg2);
  1654.  }
  1655.     else {
  1656.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1657.     }
  1658. }    Py_INCREF(Py_None);
  1659.     _resultobj = Py_None;
  1660.     return _resultobj;
  1661. }
  1662.  
  1663. static PyObject *_wrap_PDF_scale(PyObject *self, PyObject *args) {
  1664.     PyObject * _resultobj;
  1665.     PDF * _arg0;
  1666.     float  _arg1;
  1667.     float  _arg2;
  1668.     char * _argc0 = 0;
  1669.  
  1670.     self = self;
  1671.     if(!PyArg_ParseTuple(args,"sff:PDF_scale",&_argc0,&_arg1,&_arg2)) 
  1672.         return NULL;
  1673.     if (_argc0) {
  1674.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1675.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_scale. Expected _PDF_p.");
  1676.         return NULL;
  1677.         }
  1678.     }
  1679. {
  1680.     try {     PDF_scale(_arg0,_arg1,_arg2);
  1681.  }
  1682.     else {
  1683.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1684.     }
  1685. }    Py_INCREF(Py_None);
  1686.     _resultobj = Py_None;
  1687.     return _resultobj;
  1688. }
  1689.  
  1690. static PyObject *_wrap_PDF_rotate(PyObject *self, PyObject *args) {
  1691.     PyObject * _resultobj;
  1692.     PDF * _arg0;
  1693.     float  _arg1;
  1694.     char * _argc0 = 0;
  1695.  
  1696.     self = self;
  1697.     if(!PyArg_ParseTuple(args,"sf:PDF_rotate",&_argc0,&_arg1)) 
  1698.         return NULL;
  1699.     if (_argc0) {
  1700.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1701.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rotate. Expected _PDF_p.");
  1702.         return NULL;
  1703.         }
  1704.     }
  1705. {
  1706.     try {     PDF_rotate(_arg0,_arg1);
  1707.  }
  1708.     else {
  1709.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1710.     }
  1711. }    Py_INCREF(Py_None);
  1712.     _resultobj = Py_None;
  1713.     return _resultobj;
  1714. }
  1715.  
  1716. static PyObject *_wrap_PDF_moveto(PyObject *self, PyObject *args) {
  1717.     PyObject * _resultobj;
  1718.     PDF * _arg0;
  1719.     float  _arg1;
  1720.     float  _arg2;
  1721.     char * _argc0 = 0;
  1722.  
  1723.     self = self;
  1724.     if(!PyArg_ParseTuple(args,"sff:PDF_moveto",&_argc0,&_arg1,&_arg2)) 
  1725.         return NULL;
  1726.     if (_argc0) {
  1727.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1728.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_moveto. Expected _PDF_p.");
  1729.         return NULL;
  1730.         }
  1731.     }
  1732. {
  1733.     try {     PDF_moveto(_arg0,_arg1,_arg2);
  1734.  }
  1735.     else {
  1736.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1737.     }
  1738. }    Py_INCREF(Py_None);
  1739.     _resultobj = Py_None;
  1740.     return _resultobj;
  1741. }
  1742.  
  1743. static PyObject *_wrap_PDF_lineto(PyObject *self, PyObject *args) {
  1744.     PyObject * _resultobj;
  1745.     PDF * _arg0;
  1746.     float  _arg1;
  1747.     float  _arg2;
  1748.     char * _argc0 = 0;
  1749.  
  1750.     self = self;
  1751.     if(!PyArg_ParseTuple(args,"sff:PDF_lineto",&_argc0,&_arg1,&_arg2)) 
  1752.         return NULL;
  1753.     if (_argc0) {
  1754.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1755.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_lineto. Expected _PDF_p.");
  1756.         return NULL;
  1757.         }
  1758.     }
  1759. {
  1760.     try {     PDF_lineto(_arg0,_arg1,_arg2);
  1761.  }
  1762.     else {
  1763.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1764.     }
  1765. }    Py_INCREF(Py_None);
  1766.     _resultobj = Py_None;
  1767.     return _resultobj;
  1768. }
  1769.  
  1770. static PyObject *_wrap_PDF_curveto(PyObject *self, PyObject *args) {
  1771.     PyObject * _resultobj;
  1772.     PDF * _arg0;
  1773.     float  _arg1;
  1774.     float  _arg2;
  1775.     float  _arg3;
  1776.     float  _arg4;
  1777.     float  _arg5;
  1778.     float  _arg6;
  1779.     char * _argc0 = 0;
  1780.  
  1781.     self = self;
  1782.     if(!PyArg_ParseTuple(args,"sffffff:PDF_curveto",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) 
  1783.         return NULL;
  1784.     if (_argc0) {
  1785.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1786.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_curveto. Expected _PDF_p.");
  1787.         return NULL;
  1788.         }
  1789.     }
  1790. {
  1791.     try {     PDF_curveto(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
  1792.  }
  1793.     else {
  1794.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1795.     }
  1796. }    Py_INCREF(Py_None);
  1797.     _resultobj = Py_None;
  1798.     return _resultobj;
  1799. }
  1800.  
  1801. static PyObject *_wrap_PDF_circle(PyObject *self, PyObject *args) {
  1802.     PyObject * _resultobj;
  1803.     PDF * _arg0;
  1804.     float  _arg1;
  1805.     float  _arg2;
  1806.     float  _arg3;
  1807.     char * _argc0 = 0;
  1808.  
  1809.     self = self;
  1810.     if(!PyArg_ParseTuple(args,"sfff:PDF_circle",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1811.         return NULL;
  1812.     if (_argc0) {
  1813.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1814.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_circle. Expected _PDF_p.");
  1815.         return NULL;
  1816.         }
  1817.     }
  1818. {
  1819.     try {     PDF_circle(_arg0,_arg1,_arg2,_arg3);
  1820.  }
  1821.     else {
  1822.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1823.     }
  1824. }    Py_INCREF(Py_None);
  1825.     _resultobj = Py_None;
  1826.     return _resultobj;
  1827. }
  1828.  
  1829. static PyObject *_wrap_PDF_arc(PyObject *self, PyObject *args) {
  1830.     PyObject * _resultobj;
  1831.     PDF * _arg0;
  1832.     float  _arg1;
  1833.     float  _arg2;
  1834.     float  _arg3;
  1835.     float  _arg4;
  1836.     float  _arg5;
  1837.     char * _argc0 = 0;
  1838.  
  1839.     self = self;
  1840.     if(!PyArg_ParseTuple(args,"sfffff:PDF_arc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) 
  1841.         return NULL;
  1842.     if (_argc0) {
  1843.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1844.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_arc. Expected _PDF_p.");
  1845.         return NULL;
  1846.         }
  1847.     }
  1848. {
  1849.     try {     PDF_arc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
  1850.  }
  1851.     else {
  1852.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1853.     }
  1854. }    Py_INCREF(Py_None);
  1855.     _resultobj = Py_None;
  1856.     return _resultobj;
  1857. }
  1858.  
  1859. static PyObject *_wrap_PDF_rect(PyObject *self, PyObject *args) {
  1860.     PyObject * _resultobj;
  1861.     PDF * _arg0;
  1862.     float  _arg1;
  1863.     float  _arg2;
  1864.     float  _arg3;
  1865.     float  _arg4;
  1866.     char * _argc0 = 0;
  1867.  
  1868.     self = self;
  1869.     if(!PyArg_ParseTuple(args,"sffff:PDF_rect",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) 
  1870.         return NULL;
  1871.     if (_argc0) {
  1872.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1873.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rect. Expected _PDF_p.");
  1874.         return NULL;
  1875.         }
  1876.     }
  1877. {
  1878.     try {     PDF_rect(_arg0,_arg1,_arg2,_arg3,_arg4);
  1879.  }
  1880.     else {
  1881.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1882.     }
  1883. }    Py_INCREF(Py_None);
  1884.     _resultobj = Py_None;
  1885.     return _resultobj;
  1886. }
  1887.  
  1888. static PyObject *_wrap_PDF_closepath(PyObject *self, PyObject *args) {
  1889.     PyObject * _resultobj;
  1890.     PDF * _arg0;
  1891.     char * _argc0 = 0;
  1892.  
  1893.     self = self;
  1894.     if(!PyArg_ParseTuple(args,"s:PDF_closepath",&_argc0)) 
  1895.         return NULL;
  1896.     if (_argc0) {
  1897.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1898.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath. Expected _PDF_p.");
  1899.         return NULL;
  1900.         }
  1901.     }
  1902. {
  1903.     try {     PDF_closepath(_arg0);
  1904.  }
  1905.     else {
  1906.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1907.     }
  1908. }    Py_INCREF(Py_None);
  1909.     _resultobj = Py_None;
  1910.     return _resultobj;
  1911. }
  1912.  
  1913. static PyObject *_wrap_PDF_stroke(PyObject *self, PyObject *args) {
  1914.     PyObject * _resultobj;
  1915.     PDF * _arg0;
  1916.     char * _argc0 = 0;
  1917.  
  1918.     self = self;
  1919.     if(!PyArg_ParseTuple(args,"s:PDF_stroke",&_argc0)) 
  1920.         return NULL;
  1921.     if (_argc0) {
  1922.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1923.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stroke. Expected _PDF_p.");
  1924.         return NULL;
  1925.         }
  1926.     }
  1927. {
  1928.     try {     PDF_stroke(_arg0);
  1929.  }
  1930.     else {
  1931.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1932.     }
  1933. }    Py_INCREF(Py_None);
  1934.     _resultobj = Py_None;
  1935.     return _resultobj;
  1936. }
  1937.  
  1938. static PyObject *_wrap_PDF_closepath_stroke(PyObject *self, PyObject *args) {
  1939.     PyObject * _resultobj;
  1940.     PDF * _arg0;
  1941.     char * _argc0 = 0;
  1942.  
  1943.     self = self;
  1944.     if(!PyArg_ParseTuple(args,"s:PDF_closepath_stroke",&_argc0)) 
  1945.         return NULL;
  1946.     if (_argc0) {
  1947.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1948.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_stroke. Expected _PDF_p.");
  1949.         return NULL;
  1950.         }
  1951.     }
  1952. {
  1953.     try {     PDF_closepath_stroke(_arg0);
  1954.  }
  1955.     else {
  1956.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1957.     }
  1958. }    Py_INCREF(Py_None);
  1959.     _resultobj = Py_None;
  1960.     return _resultobj;
  1961. }
  1962.  
  1963. static PyObject *_wrap_PDF_fill(PyObject *self, PyObject *args) {
  1964.     PyObject * _resultobj;
  1965.     PDF * _arg0;
  1966.     char * _argc0 = 0;
  1967.  
  1968.     self = self;
  1969.     if(!PyArg_ParseTuple(args,"s:PDF_fill",&_argc0)) 
  1970.         return NULL;
  1971.     if (_argc0) {
  1972.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1973.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill. Expected _PDF_p.");
  1974.         return NULL;
  1975.         }
  1976.     }
  1977. {
  1978.     try {     PDF_fill(_arg0);
  1979.  }
  1980.     else {
  1981.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  1982.     }
  1983. }    Py_INCREF(Py_None);
  1984.     _resultobj = Py_None;
  1985.     return _resultobj;
  1986. }
  1987.  
  1988. static PyObject *_wrap_PDF_fill_stroke(PyObject *self, PyObject *args) {
  1989.     PyObject * _resultobj;
  1990.     PDF * _arg0;
  1991.     char * _argc0 = 0;
  1992.  
  1993.     self = self;
  1994.     if(!PyArg_ParseTuple(args,"s:PDF_fill_stroke",&_argc0)) 
  1995.         return NULL;
  1996.     if (_argc0) {
  1997.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1998.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill_stroke. Expected _PDF_p.");
  1999.         return NULL;
  2000.         }
  2001.     }
  2002. {
  2003.     try {     PDF_fill_stroke(_arg0);
  2004.  }
  2005.     else {
  2006.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2007.     }
  2008. }    Py_INCREF(Py_None);
  2009.     _resultobj = Py_None;
  2010.     return _resultobj;
  2011. }
  2012.  
  2013. static PyObject *_wrap_PDF_closepath_fill_stroke(PyObject *self, PyObject *args) {
  2014.     PyObject * _resultobj;
  2015.     PDF * _arg0;
  2016.     char * _argc0 = 0;
  2017.  
  2018.     self = self;
  2019.     if(!PyArg_ParseTuple(args,"s:PDF_closepath_fill_stroke",&_argc0)) 
  2020.         return NULL;
  2021.     if (_argc0) {
  2022.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2023.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_fill_stroke. Expected _PDF_p.");
  2024.         return NULL;
  2025.         }
  2026.     }
  2027. {
  2028.     try {     PDF_closepath_fill_stroke(_arg0);
  2029.  }
  2030.     else {
  2031.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2032.     }
  2033. }    Py_INCREF(Py_None);
  2034.     _resultobj = Py_None;
  2035.     return _resultobj;
  2036. }
  2037.  
  2038. static PyObject *_wrap_PDF_endpath(PyObject *self, PyObject *args) {
  2039.     PyObject * _resultobj;
  2040.     PDF * _arg0;
  2041.     char * _argc0 = 0;
  2042.  
  2043.     self = self;
  2044.     if(!PyArg_ParseTuple(args,"s:PDF_endpath",&_argc0)) 
  2045.         return NULL;
  2046.     if (_argc0) {
  2047.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2048.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_endpath. Expected _PDF_p.");
  2049.         return NULL;
  2050.         }
  2051.     }
  2052. {
  2053.     try {     PDF_endpath(_arg0);
  2054.  }
  2055.     else {
  2056.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2057.     }
  2058. }    Py_INCREF(Py_None);
  2059.     _resultobj = Py_None;
  2060.     return _resultobj;
  2061. }
  2062.  
  2063. static PyObject *_wrap_PDF_clip(PyObject *self, PyObject *args) {
  2064.     PyObject * _resultobj;
  2065.     PDF * _arg0;
  2066.     char * _argc0 = 0;
  2067.  
  2068.     self = self;
  2069.     if(!PyArg_ParseTuple(args,"s:PDF_clip",&_argc0)) 
  2070.         return NULL;
  2071.     if (_argc0) {
  2072.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2073.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_clip. Expected _PDF_p.");
  2074.         return NULL;
  2075.         }
  2076.     }
  2077. {
  2078.     try {     PDF_clip(_arg0);
  2079.  }
  2080.     else {
  2081.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2082.     }
  2083. }    Py_INCREF(Py_None);
  2084.     _resultobj = Py_None;
  2085.     return _resultobj;
  2086. }
  2087.  
  2088. static PyObject *_wrap_PDF_setgray_fill(PyObject *self, PyObject *args) {
  2089.     PyObject * _resultobj;
  2090.     PDF * _arg0;
  2091.     float  _arg1;
  2092.     char * _argc0 = 0;
  2093.  
  2094.     self = self;
  2095.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray_fill",&_argc0,&_arg1)) 
  2096.         return NULL;
  2097.     if (_argc0) {
  2098.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2099.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_fill. Expected _PDF_p.");
  2100.         return NULL;
  2101.         }
  2102.     }
  2103. {
  2104.     try {     PDF_setgray_fill(_arg0,_arg1);
  2105.  }
  2106.     else {
  2107.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2108.     }
  2109. }    Py_INCREF(Py_None);
  2110.     _resultobj = Py_None;
  2111.     return _resultobj;
  2112. }
  2113.  
  2114. static PyObject *_wrap_PDF_setgray_stroke(PyObject *self, PyObject *args) {
  2115.     PyObject * _resultobj;
  2116.     PDF * _arg0;
  2117.     float  _arg1;
  2118.     char * _argc0 = 0;
  2119.  
  2120.     self = self;
  2121.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray_stroke",&_argc0,&_arg1)) 
  2122.         return NULL;
  2123.     if (_argc0) {
  2124.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2125.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_stroke. Expected _PDF_p.");
  2126.         return NULL;
  2127.         }
  2128.     }
  2129. {
  2130.     try {     PDF_setgray_stroke(_arg0,_arg1);
  2131.  }
  2132.     else {
  2133.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2134.     }
  2135. }    Py_INCREF(Py_None);
  2136.     _resultobj = Py_None;
  2137.     return _resultobj;
  2138. }
  2139.  
  2140. static PyObject *_wrap_PDF_setgray(PyObject *self, PyObject *args) {
  2141.     PyObject * _resultobj;
  2142.     PDF * _arg0;
  2143.     float  _arg1;
  2144.     char * _argc0 = 0;
  2145.  
  2146.     self = self;
  2147.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray",&_argc0,&_arg1)) 
  2148.         return NULL;
  2149.     if (_argc0) {
  2150.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2151.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray. Expected _PDF_p.");
  2152.         return NULL;
  2153.         }
  2154.     }
  2155. {
  2156.     try {     PDF_setgray(_arg0,_arg1);
  2157.  }
  2158.     else {
  2159.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2160.     }
  2161. }    Py_INCREF(Py_None);
  2162.     _resultobj = Py_None;
  2163.     return _resultobj;
  2164. }
  2165.  
  2166. static PyObject *_wrap_PDF_setrgbcolor_fill(PyObject *self, PyObject *args) {
  2167.     PyObject * _resultobj;
  2168.     PDF * _arg0;
  2169.     float  _arg1;
  2170.     float  _arg2;
  2171.     float  _arg3;
  2172.     char * _argc0 = 0;
  2173.  
  2174.     self = self;
  2175.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_fill",&_argc0,&_arg1,&_arg2,&_arg3)) 
  2176.         return NULL;
  2177.     if (_argc0) {
  2178.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2179.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_fill. Expected _PDF_p.");
  2180.         return NULL;
  2181.         }
  2182.     }
  2183. {
  2184.     try {     PDF_setrgbcolor_fill(_arg0,_arg1,_arg2,_arg3);
  2185.  }
  2186.     else {
  2187.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2188.     }
  2189. }    Py_INCREF(Py_None);
  2190.     _resultobj = Py_None;
  2191.     return _resultobj;
  2192. }
  2193.  
  2194. static PyObject *_wrap_PDF_setrgbcolor_stroke(PyObject *self, PyObject *args) {
  2195.     PyObject * _resultobj;
  2196.     PDF * _arg0;
  2197.     float  _arg1;
  2198.     float  _arg2;
  2199.     float  _arg3;
  2200.     char * _argc0 = 0;
  2201.  
  2202.     self = self;
  2203.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_stroke",&_argc0,&_arg1,&_arg2,&_arg3)) 
  2204.         return NULL;
  2205.     if (_argc0) {
  2206.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2207.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_stroke. Expected _PDF_p.");
  2208.         return NULL;
  2209.         }
  2210.     }
  2211. {
  2212.     try {     PDF_setrgbcolor_stroke(_arg0,_arg1,_arg2,_arg3);
  2213.  }
  2214.     else {
  2215.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2216.     }
  2217. }    Py_INCREF(Py_None);
  2218.     _resultobj = Py_None;
  2219.     return _resultobj;
  2220. }
  2221.  
  2222. static PyObject *_wrap_PDF_setrgbcolor(PyObject *self, PyObject *args) {
  2223.     PyObject * _resultobj;
  2224.     PDF * _arg0;
  2225.     float  _arg1;
  2226.     float  _arg2;
  2227.     float  _arg3;
  2228.     char * _argc0 = 0;
  2229.  
  2230.     self = self;
  2231.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor",&_argc0,&_arg1,&_arg2,&_arg3)) 
  2232.         return NULL;
  2233.     if (_argc0) {
  2234.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2235.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor. Expected _PDF_p.");
  2236.         return NULL;
  2237.         }
  2238.     }
  2239. {
  2240.     try {     PDF_setrgbcolor(_arg0,_arg1,_arg2,_arg3);
  2241.  }
  2242.     else {
  2243.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2244.     }
  2245. }    Py_INCREF(Py_None);
  2246.     _resultobj = Py_None;
  2247.     return _resultobj;
  2248. }
  2249.  
  2250. static PyObject *_wrap_PDF_get_image_width(PyObject *self, PyObject *args) {
  2251.     PyObject * _resultobj;
  2252.     int  _result;
  2253.     PDF * _arg0;
  2254.     int  _arg1;
  2255.     char * _argc0 = 0;
  2256.  
  2257.     self = self;
  2258.     if(!PyArg_ParseTuple(args,"si:PDF_get_image_width",&_argc0,&_arg1)) 
  2259.         return NULL;
  2260.     if (_argc0) {
  2261.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2262.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_get_image_width. Expected _PDF_p.");
  2263.         return NULL;
  2264.         }
  2265.     }
  2266. {
  2267.     try {     _result = (int )PDF_get_image_width(_arg0,_arg1);
  2268.  }
  2269.     else {
  2270.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2271.     }
  2272. }    _resultobj = Py_BuildValue("i",_result);
  2273.     return _resultobj;
  2274. }
  2275.  
  2276. static PyObject *_wrap_PDF_get_image_height(PyObject *self, PyObject *args) {
  2277.     PyObject * _resultobj;
  2278.     int  _result;
  2279.     PDF * _arg0;
  2280.     int  _arg1;
  2281.     char * _argc0 = 0;
  2282.  
  2283.     self = self;
  2284.     if(!PyArg_ParseTuple(args,"si:PDF_get_image_height",&_argc0,&_arg1)) 
  2285.         return NULL;
  2286.     if (_argc0) {
  2287.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2288.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_get_image_height. Expected _PDF_p.");
  2289.         return NULL;
  2290.         }
  2291.     }
  2292. {
  2293.     try {     _result = (int )PDF_get_image_height(_arg0,_arg1);
  2294.  }
  2295.     else {
  2296.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2297.     }
  2298. }    _resultobj = Py_BuildValue("i",_result);
  2299.     return _resultobj;
  2300. }
  2301.  
  2302. static PyObject *_wrap_PDF_place_image(PyObject *self, PyObject *args) {
  2303.     PyObject * _resultobj;
  2304.     PDF * _arg0;
  2305.     int  _arg1;
  2306.     float  _arg2;
  2307.     float  _arg3;
  2308.     float  _arg4;
  2309.     char * _argc0 = 0;
  2310.  
  2311.     self = self;
  2312.     if(!PyArg_ParseTuple(args,"sifff:PDF_place_image",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) 
  2313.         return NULL;
  2314.     if (_argc0) {
  2315.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2316.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_place_image. Expected _PDF_p.");
  2317.         return NULL;
  2318.         }
  2319.     }
  2320. {
  2321.     try {     PDF_place_image(_arg0,_arg1,_arg2,_arg3,_arg4);
  2322.  }
  2323.     else {
  2324.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2325.     }
  2326. }    Py_INCREF(Py_None);
  2327.     _resultobj = Py_None;
  2328.     return _resultobj;
  2329. }
  2330.  
  2331. static PyObject *_wrap_PDF_open_image(PyObject *self, PyObject *args) {
  2332.     PyObject * _resultobj;
  2333.     int  _result;
  2334.     PDF * _arg0;
  2335.     char * _arg1;
  2336.     char * _arg2;
  2337.     char * _arg3;
  2338.     long  _arg4;
  2339.     int  _arg5;
  2340.     int  _arg6;
  2341.     int  _arg7;
  2342.     int  _arg8;
  2343.     char * _arg9;
  2344.     char * _argc0 = 0;
  2345.  
  2346.     self = self;
  2347.     if(!PyArg_ParseTuple(args,"ssssliiiis:PDF_open_image",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) 
  2348.         return NULL;
  2349.     if (_argc0) {
  2350.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2351.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_image. Expected _PDF_p.");
  2352.         return NULL;
  2353.         }
  2354.     }
  2355. {
  2356.     try {     _result = (int )PDF_open_image(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
  2357.  }
  2358.     else {
  2359.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2360.     }
  2361. }    _resultobj = Py_BuildValue("i",_result);
  2362.     return _resultobj;
  2363. }
  2364.  
  2365. static PyObject *_wrap_PDF_close_image(PyObject *self, PyObject *args) {
  2366.     PyObject * _resultobj;
  2367.     PDF * _arg0;
  2368.     int  _arg1;
  2369.     char * _argc0 = 0;
  2370.  
  2371.     self = self;
  2372.     if(!PyArg_ParseTuple(args,"si:PDF_close_image",&_argc0,&_arg1)) 
  2373.         return NULL;
  2374.     if (_argc0) {
  2375.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2376.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_image. Expected _PDF_p.");
  2377.         return NULL;
  2378.         }
  2379.     }
  2380. {
  2381.     try {     PDF_close_image(_arg0,_arg1);
  2382.  }
  2383.     else {
  2384.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2385.     }
  2386. }    Py_INCREF(Py_None);
  2387.     _resultobj = Py_None;
  2388.     return _resultobj;
  2389. }
  2390.  
  2391. static PyObject *_wrap_PDF_open_JPEG(PyObject *self, PyObject *args) {
  2392.     PyObject * _resultobj;
  2393.     int  _result;
  2394.     PDF * _arg0;
  2395.     char * _arg1;
  2396.     char * _argc0 = 0;
  2397.  
  2398.     self = self;
  2399.     if(!PyArg_ParseTuple(args,"ss:PDF_open_JPEG",&_argc0,&_arg1)) 
  2400.         return NULL;
  2401.     if (_argc0) {
  2402.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2403.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_JPEG. Expected _PDF_p.");
  2404.         return NULL;
  2405.         }
  2406.     }
  2407. {
  2408.     try {     _result = (int )PDF_open_JPEG(_arg0,_arg1);
  2409.  }
  2410.     else {
  2411.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2412.     }
  2413. }    _resultobj = Py_BuildValue("i",_result);
  2414.     return _resultobj;
  2415. }
  2416.  
  2417. static PyObject *_wrap_PDF_open_TIFF(PyObject *self, PyObject *args) {
  2418.     PyObject * _resultobj;
  2419.     int  _result;
  2420.     PDF * _arg0;
  2421.     char * _arg1;
  2422.     char * _argc0 = 0;
  2423.  
  2424.     self = self;
  2425.     if(!PyArg_ParseTuple(args,"ss:PDF_open_TIFF",&_argc0,&_arg1)) 
  2426.         return NULL;
  2427.     if (_argc0) {
  2428.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2429.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_TIFF. Expected _PDF_p.");
  2430.         return NULL;
  2431.         }
  2432.     }
  2433. {
  2434.     try {     _result = (int )PDF_open_TIFF(_arg0,_arg1);
  2435.  }
  2436.     else {
  2437.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2438.     }
  2439. }    _resultobj = Py_BuildValue("i",_result);
  2440.     return _resultobj;
  2441. }
  2442.  
  2443. static PyObject *_wrap_PDF_open_GIF(PyObject *self, PyObject *args) {
  2444.     PyObject * _resultobj;
  2445.     int  _result;
  2446.     PDF * _arg0;
  2447.     char * _arg1;
  2448.     char * _argc0 = 0;
  2449.  
  2450.     self = self;
  2451.     if(!PyArg_ParseTuple(args,"ss:PDF_open_GIF",&_argc0,&_arg1)) 
  2452.         return NULL;
  2453.     if (_argc0) {
  2454.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2455.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_GIF. Expected _PDF_p.");
  2456.         return NULL;
  2457.         }
  2458.     }
  2459. {
  2460.     try {     _result = (int )PDF_open_GIF(_arg0,_arg1);
  2461.  }
  2462.     else {
  2463.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2464.     }
  2465. }    _resultobj = Py_BuildValue("i",_result);
  2466.     return _resultobj;
  2467. }
  2468.  
  2469. static PyObject *_wrap_PDF_open_CCITT(PyObject *self, PyObject *args) {
  2470.     PyObject * _resultobj;
  2471.     int  _result;
  2472.     PDF * _arg0;
  2473.     char * _arg1;
  2474.     int  _arg2;
  2475.     int  _arg3;
  2476.     int  _arg4;
  2477.     int  _arg5;
  2478.     int  _arg6;
  2479.     char * _argc0 = 0;
  2480.  
  2481.     self = self;
  2482.     if(!PyArg_ParseTuple(args,"ssiiiii:PDF_open_CCITT",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) 
  2483.         return NULL;
  2484.     if (_argc0) {
  2485.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2486.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_CCITT. Expected _PDF_p.");
  2487.         return NULL;
  2488.         }
  2489.     }
  2490. {
  2491.     try {     _result = (int )PDF_open_CCITT(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
  2492.  }
  2493.     else {
  2494.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2495.     }
  2496. }    _resultobj = Py_BuildValue("i",_result);
  2497.     return _resultobj;
  2498. }
  2499.  
  2500. static PyObject *_wrap_PDF_add_bookmark(PyObject *self, PyObject *args) {
  2501.     PyObject * _resultobj;
  2502.     int  _result;
  2503.     PDF * _arg0;
  2504.     char * _arg1;
  2505.     int  _arg2;
  2506.     int  _arg3;
  2507.     char * _argc0 = 0;
  2508.  
  2509.     self = self;
  2510.     if(!PyArg_ParseTuple(args,"ssii:PDF_add_bookmark",&_argc0,&_arg1,&_arg2,&_arg3)) 
  2511.         return NULL;
  2512.     if (_argc0) {
  2513.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2514.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_bookmark. Expected _PDF_p.");
  2515.         return NULL;
  2516.         }
  2517.     }
  2518. {
  2519.     try {     _result = (int )PDF_add_bookmark(_arg0,_arg1,_arg2,_arg3);
  2520.  }
  2521.     else {
  2522.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2523.     }
  2524. }    _resultobj = Py_BuildValue("i",_result);
  2525.     return _resultobj;
  2526. }
  2527.  
  2528. static PyObject *_wrap_PDF_set_info(PyObject *self, PyObject *args) {
  2529.     PyObject * _resultobj;
  2530.     PDF * _arg0;
  2531.     char * _arg1;
  2532.     char * _arg2;
  2533.     char * _argc0 = 0;
  2534.  
  2535.     self = self;
  2536.     if(!PyArg_ParseTuple(args,"sss:PDF_set_info",&_argc0,&_arg1,&_arg2)) 
  2537.         return NULL;
  2538.     if (_argc0) {
  2539.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2540.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_info. Expected _PDF_p.");
  2541.         return NULL;
  2542.         }
  2543.     }
  2544. {
  2545.     try {     PDF_set_info(_arg0,_arg1,_arg2);
  2546.  }
  2547.     else {
  2548.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2549.     }
  2550. }    Py_INCREF(Py_None);
  2551.     _resultobj = Py_None;
  2552.     return _resultobj;
  2553. }
  2554.  
  2555. static PyObject *_wrap_PDF_set_transition(PyObject *self, PyObject *args) {
  2556.     PyObject * _resultobj;
  2557.     PDF * _arg0;
  2558.     char * _arg1;
  2559.     char * _argc0 = 0;
  2560.  
  2561.     self = self;
  2562.     if(!PyArg_ParseTuple(args,"ss:PDF_set_transition",&_argc0,&_arg1)) 
  2563.         return NULL;
  2564.     if (_argc0) {
  2565.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2566.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_transition. Expected _PDF_p.");
  2567.         return NULL;
  2568.         }
  2569.     }
  2570. {
  2571.     try {     PDF_set_transition(_arg0,_arg1);
  2572.  }
  2573.     else {
  2574.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2575.     }
  2576. }    Py_INCREF(Py_None);
  2577.     _resultobj = Py_None;
  2578.     return _resultobj;
  2579. }
  2580.  
  2581. static PyObject *_wrap_PDF_set_duration(PyObject *self, PyObject *args) {
  2582.     PyObject * _resultobj;
  2583.     PDF * _arg0;
  2584.     float  _arg1;
  2585.     char * _argc0 = 0;
  2586.  
  2587.     self = self;
  2588.     if(!PyArg_ParseTuple(args,"sf:PDF_set_duration",&_argc0,&_arg1)) 
  2589.         return NULL;
  2590.     if (_argc0) {
  2591.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2592.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_duration. Expected _PDF_p.");
  2593.         return NULL;
  2594.         }
  2595.     }
  2596. {
  2597.     try {     PDF_set_duration(_arg0,_arg1);
  2598.  }
  2599.     else {
  2600.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2601.     }
  2602. }    Py_INCREF(Py_None);
  2603.     _resultobj = Py_None;
  2604.     return _resultobj;
  2605. }
  2606.  
  2607. static PyObject *_wrap_PDF_attach_file(PyObject *self, PyObject *args) {
  2608.     PyObject * _resultobj;
  2609.     PDF * _arg0;
  2610.     float  _arg1;
  2611.     float  _arg2;
  2612.     float  _arg3;
  2613.     float  _arg4;
  2614.     char * _arg5;
  2615.     char * _arg6;
  2616.     char * _arg7;
  2617.     char * _arg8;
  2618.     char * _arg9;
  2619.     char * _argc0 = 0;
  2620.  
  2621.     self = self;
  2622.     if(!PyArg_ParseTuple(args,"sffffsssss:PDF_attach_file",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) 
  2623.         return NULL;
  2624.     if (_argc0) {
  2625.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2626.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_attach_file. Expected _PDF_p.");
  2627.         return NULL;
  2628.         }
  2629.     }
  2630. {
  2631.     try {     PDF_attach_file(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
  2632.  }
  2633.     else {
  2634.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2635.     }
  2636. }    Py_INCREF(Py_None);
  2637.     _resultobj = Py_None;
  2638.     return _resultobj;
  2639. }
  2640.  
  2641. static PyObject *_wrap_PDF_add_note(PyObject *self, PyObject *args) {
  2642.     PyObject * _resultobj;
  2643.     PDF * _arg0;
  2644.     float  _arg1;
  2645.     float  _arg2;
  2646.     float  _arg3;
  2647.     float  _arg4;
  2648.     char * _arg5;
  2649.     char * _arg6;
  2650.     char * _arg7;
  2651.     int  _arg8;
  2652.     char * _argc0 = 0;
  2653.  
  2654.     self = self;
  2655.     if(!PyArg_ParseTuple(args,"sffffsssi:PDF_add_note",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7,&_arg8)) 
  2656.         return NULL;
  2657.     if (_argc0) {
  2658.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2659.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_note. Expected _PDF_p.");
  2660.         return NULL;
  2661.         }
  2662.     }
  2663. {
  2664.     try {     PDF_add_note(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8);
  2665.  }
  2666.     else {
  2667.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2668.     }
  2669. }    Py_INCREF(Py_None);
  2670.     _resultobj = Py_None;
  2671.     return _resultobj;
  2672. }
  2673.  
  2674. static PyObject *_wrap_PDF_add_pdflink(PyObject *self, PyObject *args) {
  2675.     PyObject * _resultobj;
  2676.     PDF * _arg0;
  2677.     float  _arg1;
  2678.     float  _arg2;
  2679.     float  _arg3;
  2680.     float  _arg4;
  2681.     char * _arg5;
  2682.     int  _arg6;
  2683.     char * _arg7;
  2684.     char * _argc0 = 0;
  2685.  
  2686.     self = self;
  2687.     if(!PyArg_ParseTuple(args,"sffffsis:PDF_add_pdflink",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) 
  2688.         return NULL;
  2689.     if (_argc0) {
  2690.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2691.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_pdflink. Expected _PDF_p.");
  2692.         return NULL;
  2693.         }
  2694.     }
  2695. {
  2696.     try {     PDF_add_pdflink(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
  2697.  }
  2698.     else {
  2699.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2700.     }
  2701. }    Py_INCREF(Py_None);
  2702.     _resultobj = Py_None;
  2703.     return _resultobj;
  2704. }
  2705.  
  2706. static PyObject *_wrap_PDF_add_launchlink(PyObject *self, PyObject *args) {
  2707.     PyObject * _resultobj;
  2708.     PDF * _arg0;
  2709.     float  _arg1;
  2710.     float  _arg2;
  2711.     float  _arg3;
  2712.     float  _arg4;
  2713.     char * _arg5;
  2714.     char * _argc0 = 0;
  2715.  
  2716.     self = self;
  2717.     if(!PyArg_ParseTuple(args,"sffffs:PDF_add_launchlink",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) 
  2718.         return NULL;
  2719.     if (_argc0) {
  2720.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2721.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_launchlink. Expected _PDF_p.");
  2722.         return NULL;
  2723.         }
  2724.     }
  2725. {
  2726.     try {     PDF_add_launchlink(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
  2727.  }
  2728.     else {
  2729.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2730.     }
  2731. }    Py_INCREF(Py_None);
  2732.     _resultobj = Py_None;
  2733.     return _resultobj;
  2734. }
  2735.  
  2736. static PyObject *_wrap_PDF_add_locallink(PyObject *self, PyObject *args) {
  2737.     PyObject * _resultobj;
  2738.     PDF * _arg0;
  2739.     float  _arg1;
  2740.     float  _arg2;
  2741.     float  _arg3;
  2742.     float  _arg4;
  2743.     int  _arg5;
  2744.     char * _arg6;
  2745.     char * _argc0 = 0;
  2746.  
  2747.     self = self;
  2748.     if(!PyArg_ParseTuple(args,"sffffis:PDF_add_locallink",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) 
  2749.         return NULL;
  2750.     if (_argc0) {
  2751.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2752.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_locallink. Expected _PDF_p.");
  2753.         return NULL;
  2754.         }
  2755.     }
  2756. {
  2757.     try {     PDF_add_locallink(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
  2758.  }
  2759.     else {
  2760.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2761.     }
  2762. }    Py_INCREF(Py_None);
  2763.     _resultobj = Py_None;
  2764.     return _resultobj;
  2765. }
  2766.  
  2767. static PyObject *_wrap_PDF_add_weblink(PyObject *self, PyObject *args) {
  2768.     PyObject * _resultobj;
  2769.     PDF * _arg0;
  2770.     float  _arg1;
  2771.     float  _arg2;
  2772.     float  _arg3;
  2773.     float  _arg4;
  2774.     char * _arg5;
  2775.     char * _argc0 = 0;
  2776.  
  2777.     self = self;
  2778.     if(!PyArg_ParseTuple(args,"sffffs:PDF_add_weblink",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) 
  2779.         return NULL;
  2780.     if (_argc0) {
  2781.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2782.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_weblink. Expected _PDF_p.");
  2783.         return NULL;
  2784.         }
  2785.     }
  2786. {
  2787.     try {     PDF_add_weblink(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
  2788.  }
  2789.     else {
  2790.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2791.     }
  2792. }    Py_INCREF(Py_None);
  2793.     _resultobj = Py_None;
  2794.     return _resultobj;
  2795. }
  2796.  
  2797. static PyObject *_wrap_PDF_set_border_style(PyObject *self, PyObject *args) {
  2798.     PyObject * _resultobj;
  2799.     PDF * _arg0;
  2800.     char * _arg1;
  2801.     float  _arg2;
  2802.     char * _argc0 = 0;
  2803.  
  2804.     self = self;
  2805.     if(!PyArg_ParseTuple(args,"ssf:PDF_set_border_style",&_argc0,&_arg1,&_arg2)) 
  2806.         return NULL;
  2807.     if (_argc0) {
  2808.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2809.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_border_style. Expected _PDF_p.");
  2810.         return NULL;
  2811.         }
  2812.     }
  2813. {
  2814.     try {     PDF_set_border_style(_arg0,_arg1,_arg2);
  2815.  }
  2816.     else {
  2817.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2818.     }
  2819. }    Py_INCREF(Py_None);
  2820.     _resultobj = Py_None;
  2821.     return _resultobj;
  2822. }
  2823.  
  2824. static PyObject *_wrap_PDF_set_border_color(PyObject *self, PyObject *args) {
  2825.     PyObject * _resultobj;
  2826.     PDF * _arg0;
  2827.     float  _arg1;
  2828.     float  _arg2;
  2829.     float  _arg3;
  2830.     char * _argc0 = 0;
  2831.  
  2832.     self = self;
  2833.     if(!PyArg_ParseTuple(args,"sfff:PDF_set_border_color",&_argc0,&_arg1,&_arg2,&_arg3)) 
  2834.         return NULL;
  2835.     if (_argc0) {
  2836.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2837.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_border_color. Expected _PDF_p.");
  2838.         return NULL;
  2839.         }
  2840.     }
  2841. {
  2842.     try {     PDF_set_border_color(_arg0,_arg1,_arg2,_arg3);
  2843.  }
  2844.     else {
  2845.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2846.     }
  2847. }    Py_INCREF(Py_None);
  2848.     _resultobj = Py_None;
  2849.     return _resultobj;
  2850. }
  2851.  
  2852. static PyObject *_wrap_PDF_set_border_dash(PyObject *self, PyObject *args) {
  2853.     PyObject * _resultobj;
  2854.     PDF * _arg0;
  2855.     float  _arg1;
  2856.     float  _arg2;
  2857.     char * _argc0 = 0;
  2858.  
  2859.     self = self;
  2860.     if(!PyArg_ParseTuple(args,"sff:PDF_set_border_dash",&_argc0,&_arg1,&_arg2)) 
  2861.         return NULL;
  2862.     if (_argc0) {
  2863.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2864.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_border_dash. Expected _PDF_p.");
  2865.         return NULL;
  2866.         }
  2867.     }
  2868. {
  2869.     try {     PDF_set_border_dash(_arg0,_arg1,_arg2);
  2870.  }
  2871.     else {
  2872.     SWIG_exception(pdf_swig_exceptions[exception_status], error_message);
  2873.     }
  2874. }    Py_INCREF(Py_None);
  2875.     _resultobj = Py_None;
  2876.     return _resultobj;
  2877. }
  2878.  
  2879. static PyMethodDef pdflibMethods[] = {
  2880.      { "PDF_set_border_dash", _wrap_PDF_set_border_dash, 1 },
  2881.      { "PDF_set_border_color", _wrap_PDF_set_border_color, 1 },
  2882.      { "PDF_set_border_style", _wrap_PDF_set_border_style, 1 },
  2883.      { "PDF_add_weblink", _wrap_PDF_add_weblink, 1 },
  2884.      { "PDF_add_locallink", _wrap_PDF_add_locallink, 1 },
  2885.      { "PDF_add_launchlink", _wrap_PDF_add_launchlink, 1 },
  2886.      { "PDF_add_pdflink", _wrap_PDF_add_pdflink, 1 },
  2887.      { "PDF_add_note", _wrap_PDF_add_note, 1 },
  2888.      { "PDF_attach_file", _wrap_PDF_attach_file, 1 },
  2889.      { "PDF_set_duration", _wrap_PDF_set_duration, 1 },
  2890.      { "PDF_set_transition", _wrap_PDF_set_transition, 1 },
  2891.      { "PDF_set_info", _wrap_PDF_set_info, 1 },
  2892.      { "PDF_add_bookmark", _wrap_PDF_add_bookmark, 1 },
  2893.      { "PDF_open_CCITT", _wrap_PDF_open_CCITT, 1 },
  2894.      { "PDF_open_GIF", _wrap_PDF_open_GIF, 1 },
  2895.      { "PDF_open_TIFF", _wrap_PDF_open_TIFF, 1 },
  2896.      { "PDF_open_JPEG", _wrap_PDF_open_JPEG, 1 },
  2897.      { "PDF_close_image", _wrap_PDF_close_image, 1 },
  2898.      { "PDF_open_image", _wrap_PDF_open_image, 1 },
  2899.      { "PDF_place_image", _wrap_PDF_place_image, 1 },
  2900.      { "PDF_get_image_height", _wrap_PDF_get_image_height, 1 },
  2901.      { "PDF_get_image_width", _wrap_PDF_get_image_width, 1 },
  2902.      { "PDF_setrgbcolor", _wrap_PDF_setrgbcolor, 1 },
  2903.      { "PDF_setrgbcolor_stroke", _wrap_PDF_setrgbcolor_stroke, 1 },
  2904.      { "PDF_setrgbcolor_fill", _wrap_PDF_setrgbcolor_fill, 1 },
  2905.      { "PDF_setgray", _wrap_PDF_setgray, 1 },
  2906.      { "PDF_setgray_stroke", _wrap_PDF_setgray_stroke, 1 },
  2907.      { "PDF_setgray_fill", _wrap_PDF_setgray_fill, 1 },
  2908.      { "PDF_clip", _wrap_PDF_clip, 1 },
  2909.      { "PDF_endpath", _wrap_PDF_endpath, 1 },
  2910.      { "PDF_closepath_fill_stroke", _wrap_PDF_closepath_fill_stroke, 1 },
  2911.      { "PDF_fill_stroke", _wrap_PDF_fill_stroke, 1 },
  2912.      { "PDF_fill", _wrap_PDF_fill, 1 },
  2913.      { "PDF_closepath_stroke", _wrap_PDF_closepath_stroke, 1 },
  2914.      { "PDF_stroke", _wrap_PDF_stroke, 1 },
  2915.      { "PDF_closepath", _wrap_PDF_closepath, 1 },
  2916.      { "PDF_rect", _wrap_PDF_rect, 1 },
  2917.      { "PDF_arc", _wrap_PDF_arc, 1 },
  2918.      { "PDF_circle", _wrap_PDF_circle, 1 },
  2919.      { "PDF_curveto", _wrap_PDF_curveto, 1 },
  2920.      { "PDF_lineto", _wrap_PDF_lineto, 1 },
  2921.      { "PDF_moveto", _wrap_PDF_moveto, 1 },
  2922.      { "PDF_rotate", _wrap_PDF_rotate, 1 },
  2923.      { "PDF_scale", _wrap_PDF_scale, 1 },
  2924.      { "PDF_translate", _wrap_PDF_translate, 1 },
  2925.      { "PDF_restore", _wrap_PDF_restore, 1 },
  2926.      { "PDF_save", _wrap_PDF_save, 1 },
  2927.      { "PDF_set_fillrule", _wrap_PDF_set_fillrule, 1 },
  2928.      { "PDF_setlinewidth", _wrap_PDF_setlinewidth, 1 },
  2929.      { "PDF_setmiterlimit", _wrap_PDF_setmiterlimit, 1 },
  2930.      { "PDF_setlinecap", _wrap_PDF_setlinecap, 1 },
  2931.      { "PDF_setlinejoin", _wrap_PDF_setlinejoin, 1 },
  2932.      { "PDF_setflat", _wrap_PDF_setflat, 1 },
  2933.      { "PDF_setpolydash", _wrap_PDF_setpolydash, 1 },
  2934.      { "PDF_setdash", _wrap_PDF_setdash, 1 },
  2935.      { "PDF_stringwidth", _wrap_PDF_stringwidth, 1 },
  2936.      { "PDF_set_word_spacing", _wrap_PDF_set_word_spacing, 1 },
  2937.      { "PDF_set_char_spacing", _wrap_PDF_set_char_spacing, 1 },
  2938.      { "PDF_set_text_pos", _wrap_PDF_set_text_pos, 1 },
  2939.      { "PDF_set_text_matrix", _wrap_PDF_set_text_matrix, 1 },
  2940.      { "PDF_set_text_rendering", _wrap_PDF_set_text_rendering, 1 },
  2941.      { "PDF_set_horiz_scaling", _wrap_PDF_set_horiz_scaling, 1 },
  2942.      { "PDF_set_text_rise", _wrap_PDF_set_text_rise, 1 },
  2943.      { "PDF_set_leading", _wrap_PDF_set_leading, 1 },
  2944.      { "PDF_continue_text", _wrap_PDF_continue_text, 1 },
  2945.      { "PDF_show_xy", _wrap_PDF_show_xy, 1 },
  2946.      { "PDF_show", _wrap_PDF_show, 1 },
  2947.      { "PDF_get_font", _wrap_PDF_get_font, 1 },
  2948.      { "PDF_get_fontsize", _wrap_PDF_get_fontsize, 1 },
  2949.      { "PDF_get_fontname", _wrap_PDF_get_fontname, 1 },
  2950.      { "PDF_set_font", _wrap_PDF_set_font, 1 },
  2951.      { "PDF_setfont", _wrap_PDF_setfont, 1 },
  2952.      { "PDF_findfont", _wrap_PDF_findfont, 1 },
  2953.      { "PDF_set_parameter", _wrap_PDF_set_parameter, 1 },
  2954.      { "PDF_end_page", _wrap_PDF_end_page, 1 },
  2955.      { "PDF_begin_page", _wrap_PDF_begin_page, 1 },
  2956.      { "PDF_close", _wrap_PDF_close, 1 },
  2957.      { "PDF_open_file", _wrap_PDF_open_file, 1 },
  2958.      { "PDF_delete", _wrap_PDF_delete, 1 },
  2959.      { "PDF_new", _wrap_PDF_new, 1 },
  2960.      { "PDF_shutdown", _wrap_PDF_shutdown, 1 },
  2961.      { "PDF_boot", _wrap_PDF_boot, 1 },
  2962.      { NULL, NULL }
  2963. };
  2964. static PyObject *SWIG_globals;
  2965. #ifdef __cplusplus
  2966. extern "C" 
  2967. #endif
  2968. SWIGEXPORT(void,initpdflib)() {
  2969.      PyObject *m, *d;
  2970.      SWIG_globals = SWIG_newvarlink();
  2971.      m = Py_InitModule("pdflib", pdflibMethods);
  2972.      d = PyModule_GetDict(m);
  2973.  
  2974.     /* Boot the PDFlib core */
  2975.     PDF_boot();
  2976. /*
  2977.  * These are the pointer type-equivalency mappings. 
  2978.  * (Used by the SWIG pointer type-checker).
  2979.  */
  2980.      SWIG_RegisterMapping("_signed_long","_long",0);
  2981.      SWIG_RegisterMapping("_struct_PDF_s","_PDF",0);
  2982.      SWIG_RegisterMapping("_long","_unsigned_long",0);
  2983.      SWIG_RegisterMapping("_long","_signed_long",0);
  2984.      SWIG_RegisterMapping("_PDF","_struct_PDF_s",0);
  2985.      SWIG_RegisterMapping("_unsigned_long","_long",0);
  2986.      SWIG_RegisterMapping("_signed_int","_int",0);
  2987.      SWIG_RegisterMapping("_unsigned_short","_short",0);
  2988.      SWIG_RegisterMapping("_signed_short","_short",0);
  2989.      SWIG_RegisterMapping("_unsigned_int","_int",0);
  2990.      SWIG_RegisterMapping("_short","_unsigned_short",0);
  2991.      SWIG_RegisterMapping("_short","_signed_short",0);
  2992.      SWIG_RegisterMapping("_int","_unsigned_int",0);
  2993.      SWIG_RegisterMapping("_int","_signed_int",0);
  2994. }
  2995.